Reverse a String eg: I am a boy ans : boy a am I
Sigiloso
int main() { char s[] = "I am a boy"; char a[20][20]; int i=0; char *result = strtok(s, " "); if (result) strcpy(a[i++], result); while (result != NULL) { result = strtok(NULL, " "); if (result) strcpy(a[i++], result); } while (i != -1) printf("%s ", a[--i]); return 0; }