Tuesday, July 9, 2019

c interview questions18

#include <stdio.h>
#include <stdlib.h>

void func (int a, int b);
int main()
{
    int i=5,j=10;
    func(i/2,j%3) ;

    return 0;
}
void func(int a,int b)
{
    a=a/2;
    b--;
    printf("%d\t",a+b) ;
}

output::
1

No comments:

Post a Comment

python class topic video