#include<stdio.h>
#include<string.h>
const int MAXN = 128;
void rotar_esquerda( char S[] ){
char caracter;
caracter = S[0];
for(int i = 0; S[i] != '\0'; i++){
S[i] = S[i + 1];
}
int tam_string = strlen(S);
S[tam_string - 1] = caracter;
}
/* Leitura e impressao - use para testar sua funcao */
int main(){
char S[MAXN];
scanf("%s", S);
rotar_esquerda( S );
printf("%s\n", S);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: