Last active
December 17, 2015 10:39
-
-
Save ssteuteville/5596848 to your computer and use it in GitHub Desktop.
A good example of pointer manipulation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
char* str = "Cool Way To Loop Through An Array Of Characters\n"; | |
for(; *str; str++) | |
printf("%c", str[0]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment