Discussion :: Strings
-
What will be the output of the program in Turbo C?
#include int main() { char str[10] = "Fresher"; str[6] = "GATE"; printf("%s\n", str); return 0; }
Answer : Option D
Explanation :
str[6] = "GATE"; - Nonportable pointer conversion.
Be The First To Comment

Whatsapp
Facebook