The output of the program is:
void main()
{
char s[20];
char* p = "string";
int i;
int len = strlen(p);
for (i = 0; i < len; i++)
s[i] = p[len-i];
printf("%s".s);
}
A. string B. gnirt C. gnirts D. No output is printed
Answer is D.
No comments:
Post a Comment