Let Us See C language
Friday, 16 April 2010
Printing character Array using pointers
#include < stdio.h >
int main(void) {
char anyPhrase[] = "Go Jaguars!";
char * ptr = anyPhrase;
int i;
for (i = 0; i < sizeof(anyPhrase) - 1; i++) {
putchar('\n');
putchar( * ptr++);
}
putchar('\n');
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment