What will be the output of the program? #include<stdio.h> int main() { printf("India", "CURIOUSTAB "); return 0; }

Correct Answer: India

Explanation:

printf("India", "CURIOUSTAB\n"); It prints "India". Because ,(comma) operator has Left to Right associativity. After printing "India", the statement got terminated.

More Questions from Strings

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion