Skip to content

Instantly share code, notes, and snippets.

@Intey
Created November 2, 2018 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Intey/ab8926c1db505ecc95f33a92004940e2 to your computer and use it in GitHub Desktop.
Save Intey/ab8926c1db505ecc95f33a92004940e2 to your computer and use it in GitHub Desktop.
int main(int argc, char** argv) {
char* s;
char b = '1';
char a = '2';
char e = '\0';
s = &b;
int i = 0;
while(*s++ && i++ < 5) {
*s = '9';
}
printf("a: %c e: %c", a, e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment