Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
C Preprocessor
What will be the output of the program? #include<stdio.h> #define JOIN(s1, s2) printf("%s=%s %s=%s \n", #s1, s1, #s2, s2); int main() { char *str1="India"; char *str2="CURIOUSTAB"; JOIN(str1, str2); return 0; }
str1=CuriousTab str2=CURIOUSTAB
str1=India str2=CURIOUSTAB
str1=India str2=CuriousTab
Error: in macro substitution
Show Answer
Correct Answer:
str1=India str2=CURIOUSTAB
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment