would you say these loops are correct? if not could anyone tell me why or give me any hints
the question is.... Write two loops to display the characters of the string s in reverse order. One should use array notation, and one pointer notation.
array
pointerCode:char s[100]; int i; for( i=99; i==0; i--) printf(“%c”, s[i]);
Code:char *sp; sp=&s[99]; do { printf("%c", *sp); sp--; } while (sp != s);