what will be the contents of the array SORT after the following statements are done??
I think the contents are unchanged.Code:#define ELEMENTS 7 int SORT[ELEMENTS] = {2,4,6,8,10,12,14}; int *s = &SORT[0], *t = &SORT[ELEMENTS -1], temp; while (s < t) { temp = *s; *s++ = *t; *t-- = temp; }
Is that correct??
Or is this a trick question, and the contents are reversed??