Skip to content

Instantly share code, notes, and snippets.

@xaicron
Created October 6, 2010 10:26
Show Gist options
  • Save xaicron/613146 to your computer and use it in GitHub Desktop.
Save xaicron/613146 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void) {
char foo[10];
char *bar = &foo;
hoge(&bar);
printf("%s\n", "main");
printf("%c\n", foo[0]);
}
void hoge(char **str) {
*str[0] = 'a';
printf("%s\n", "hoge");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment