Created
October 6, 2010 10:26
-
-
Save xaicron/613146 to your computer and use it in GitHub Desktop.
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> | |
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