Posts by Flavinho • 1 point
1 post
-
0
votes4
answers14489
viewsA: Invert string in C
bro would be better like this. Ignore this 255. char nome[255]; int tam; scanf("%254[^\n]", nome); tam=strlen(nome); for(i=tam-1;i>=0;i--){ printf("%c",nome[i]); }…