Question: Programming question { char *s1, s2[] = Good; s1 = s2 + 4; while (--s1 >= s2) printf(%s, s1); printf(%d %d %d , s1[3], s1[4],
Programming question
{ char *s1, s2[] = "Good"; s1 = s2 + 4; while (--s1 >= s2) printf("%s", s1); printf("%d %d %d ", s1[3], s1[4], s2[4]);
return 0; }
prints: dodoodGood111 100 0
Question. Please correct assumptions: 1. What does s1[3], s1[4], and s2[4] mean?
2. What are 111 100 0?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
