OpenStudy (anonymous):

#include #define FUN(i, j) i##j int main() { int va1=10; int va12=20; printf("%d\n", FUN(va1, 2)); return 0; }

4 years ago
OpenStudy (anonymous):

can you tell what's output and why..

4 years ago
OpenStudy (anonymous):

the ## operator in C concatenates strings for the pre-processor to use later, since you pass in va1 and va2 into FUN you will get va12 which is 20 so the output will be 20.

4 years ago
OpenStudy (anonymous):

pass in va1 and 2**

4 years ago
OpenStudy (anonymous):

So basically the ## operator appends to what ever you pass in as j to i.

4 years ago
Similar Questions: