GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
Tuesday, May 3, 2011
C - Iterate Pointer Of Char
To iterate a pointer of char, it's just need like doing with custom looping
char *data = "lady gaga";
for(; *data!='\0'; data++){
putchar(*data);
}
Or using this one:
while(*data != '\0'){
putchar(*data);
data++;
}
C - Iterate Pointer Of Char
1 comment:
Anonymous
April 12, 2012 at 7:17 AM
thanks works full
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
thanks works full
ReplyDelete