Thread
:
C programming Count uppercase letters in a sentence
View Single Post
Reply
Posted 2004-10-16, 11:56 AM in reply to
WetWired
's post starting
"Actually, it would be..."
WetWired said:
Actually, it would be
for(i=0;i<strlen(string);i++)
not
for(i=0;i<string[i];i++)
Actually, I don't even know why I did
Code:
i<string[i]
I meant to just say
Code:
string[i]
I'll go ahead and change that.
But yea, WW's method is better. Use strlen.
Last edited by Demosthenes; 2004-10-16 at
12:12 PM
.
Profile
PM
WWW
Search
Demosthenes