dimanche 31 août 2014

Trying to count how many characters there are in a string in C


Vote count:

-1





void reverse(char s[]) {
int i;
int len = 0;
for (i=0; s[i] != '0'; i++) {
len = len + 1;
}


Here is my code above. s[] is the string I am trying to reverse; Please help! Thanks



asked 1 min ago







Trying to count how many characters there are in a string in C

Aucun commentaire:

Enregistrer un commentaire