Let Us See C language
Python
Home
Training Classes
Data Structures in C
C Interview Questions
Advance Data Structures
Projects in CPP
CPP Programs
Java Programs
JDBC
Projects
Algorithms and Flow Charts
C Programs
CORE JAVA
SAP(ABAP)
Software Engineering
Data Structures
CPP
RDBMS
DCCN
Operating System
print
Print this post
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment