kaldin

  • Login

C Programming


1) What will be the output of the program?

#include<stdio.h>
#define SQR(x)(x*x)

int main()
{
    int a, b=3;
    a = SQR(b+2);
    printf("%d\n", a);
    return 0;
}
  • A)

  • B)

  • C)

  • D)

Next
Show Answer:
Show Answer


More Question
What will be the output of the program #includestdio.hint main() int i=2; printf(d, d\n, ++i, ++i); return 0;
The keyword used to transfer control from a function back to the calling function is
Point out the error, if any in the program. #includestdio.hint main() int P = 10; switch(P) case 10: printf(Case 1); case 20: printf(Case 2); break; case P: printf(Case 2); break; return 0;
Which of the following statements are correct about the function long fun(int num) int i; long f=1; for(i=1; i=num; i++) f = f i; return f;
Bit fields CANNOT be used in union.