

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the program?_x000D_ #include_x000D_ #define SWAP(a, b) int t; t=a, a=b, b=t;_x000D_ int main()_x000D_ {_x000D_ int a=10, b=12;_x000D_ SWAP(a, b);_x000D_ printf("a = %d, b = %d\n", a, b);_x000D_ return 0;_x000D_ } |
A. | a = 10, b = 12 |
B. | a = 12, b = 10 |
C. | Error: Declaration not allowed in macro |
D. | Error: Undefined symbol 't' |
Answer» C. Error: Declaration not allowed in macro | |