0
Is the question bugged? (Extraterrestrials)
I made this for the extraterrestrials problem, it looks correct, yet it says its incorrect: ----------- #include <stdio.h> #include <string.h> int main() { char wrd[50]; int x; scanf("%s",wrd); for (x = strlen (wrd);x >= 0; x--) { printf ("%c",wrd[x]); } return 0; } -----------
2 Respostas
+ 3
x = strlen(wrd)-1
This is the first letter you want to print!
+ 3
Arrays follow zero indexing.
char word[50] means it can store values from index 0 to 49.