0 votes 0 votes What is printed by the following C code? #define a (x+1) int x = 2; void b() {x = a; printf("%d\n",x);} void c() {int x = 1; printf("%d\n"),a;} void main() {b(); c();} Compiler Design ullman compiler-design + – admin asked Jul 26, 2019 admin 211 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes It will simply print 3 and 0. 3 is printed by the function b 0 is printed by the function c Actually function c should not print anything but the printing of 0 indicates that the execution is successful. Rudr Pawan answered Jul 31, 2019 Rudr Pawan comment Share Follow See all 0 reply Please log in or register to add a comment.