1.

What will be the output of the following C code?
#include <stdio.h>
struct test
{
int num;
} t;
void func(struct test t)
{
t.num = 125;
printf("%d ", t.num);
}
main()
{
func(t);
printf("%d ", t.num);
}

A. Compilation Error
B. 125 0
C. Garbage value
D. Nothing
E. None of these
Answer» C. Garbage value


Discussion

No Comment Found

Related MCQs