Home » C Programming » Strings

What will be the output of the program? #include int main() { printf("India", "CURIOUSTAB\n"); 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.

← Previous Question Next Question→

More Questions from Strings

Discussion & Comments

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