edited by
691 views

2 Answers

Best answer
13 votes
13 votes
C preprocessor automatically concatenates adjacent strings. '#' operator makes a string and so sum(6,9) expands to "6" "+" "9" "=%d" which concatenates to "6+9=%d". So, the final printed value will be "6+9=15". 6 characters.
selected by
Answer:

Related questions

3 votes
3 votes
1 answer
1
gatecse asked Jul 26, 2020
223 views
What will be the output of the following C program?#define macro(a,b) (a+b) #include<stdio.h int main() { printf("%d", macro(3,4) * macro(3,4)); }
4 votes
4 votes
1 answer
2
gatecse asked Jul 26, 2020
394 views
What will be the output of the following C program:#include<stdio.h #define hello "myhello" "myhi" int main() { printf(hello); }myhello myhimyhellomyhimyhello myhi
6 votes
6 votes
1 answer
3
gatecse asked Jul 26, 2020
562 views
What will be the output of the following C program?(Assume IEEE -$754$ standard being Used)#include<stdio.h int main() { float a = 8.0625; if(a == 8.0625) { printf("1"); ...