Q. 78 Consider the following C program segment:
char p[20]; int i; char* s = "string"; int length = strlen(s); for(i = ; i < length; i++) p[i] = s[length-i]; printf("%s", p);
The output of the program is
(A) gnirts
(B) string
(C) gnirt
(D) no output is printed
Answer: (D)
Explanation: