Home » C Programming » Strings

What will be the output of the program in Turbo C? #include int main() { char str[10] = "India"; str[6] = "CURIOUSTAB"; printf("%s\n", str); return 0; }

Correct Answer: Error

Explanation:

str[6] = "CURIOUSTAB"; - Nonportable pointer conversion.

← Previous Question Next Question→

Discussion & Comments

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