Skip to content

Instantly share code, notes, and snippets.

@ssteuteville
Last active December 17, 2015 10:39
Show Gist options
  • Save ssteuteville/5596848 to your computer and use it in GitHub Desktop.
Save ssteuteville/5596848 to your computer and use it in GitHub Desktop.
A good example of pointer manipulation.
#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