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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!