#define f(g,h) g##h
main O
int i=0
int var=100
;
print f ("%d"f(var,10));}

what would be the output?



#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what wo..

Answer / ricky

It will show an error:
Undefined symbol var10 in main function

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More C Interview Questions

Why #include is used in c language?

0 Answers  


what is the difference between definition and declaration? give me some examples.

2 Answers   TCS,


The file stdio.h, what does it contain?

0 Answers  


difference of two no's with out using - operator

7 Answers  


The difference between printf and fprintf is ?

0 Answers   Baan Infotech,






write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason

6 Answers   CSC,


How can I find the modification date and time of a file?

0 Answers  


Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program

5 Answers   Mascot,


EXPLAIN #INCLUDE<STDIO.H> EXPLAIN #INCLUDE<CONIO.H>

4 Answers  


#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?

4 Answers   Ramco,


find out largest elemant of diagonalmatrix

0 Answers  


Categories