Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
void inline func1(int a, int b) 
{
    printf ("a=%d and b=%d\n", a, b);
}
int inline func2(int x)
{
    return x*x;
}
int main()
{
    int tmp;
    func1(1,4);
    tmp = func2(6);
    printf("square val=%d\n", tmp);
    return 0;
}

A. a=1 and b=4
square val = 36

B. a=4 and b=1

C. error

D. square val = 36

Answer: Option A


This Question Belongs to C Program >> C Miscellaneous

Join The Discussion

Related Questions on C Miscellaneous