Top

Discussion

What will be the output of the following program?

#include< stdio>

Void f(static int*, extern int);
Static int b = 12;
Int main()
{
Static int a[5];
Register int I;
For(I = 0; I < 2> A[i++] = 2 * i++;
F(a, b);
For(I = 0; I < 2> Printf(“%d”, b++);
Return 0;
}
Void f (static int *x, extern int y)
{
Register int I;
For(I = 0; I < 2> *(++x +1) + = 2;
Y + = 2;
}

 

  • A.0 0
  • B.0 6
  • C.0 12
  • D.12 12

Answer: C

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment