I have a string S and I want to print all its suffix, I tried the following but I seem to be missing a number of letters;
When I input a word of length greater the 8, I lose all the letters after the 8th char.
for example
Code:
char *S; scanf("%s", &S); int l,i; l = strlen(S); for(i = 0;i < l;i++){ printf("%s",&S[i]); }
for example
Code:
mississippi //this is the input mississippi ississi ssissi sissi issi ssi si i
Comment