1.

Consider the following C program segment: char p[20]; char *s = "string"; int length = strlen(s); int i; for (i = 0; i < length; i++) p[i] = s[length — i]; printf("%s", p); The output of the program is?

A. gnirts
B. Gnirt
C. String
D. no output is printed
Answer» E.


Discussion

No Comment Found