-
-
Save fbs/948633 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 buf[] = "string"; | |
char * str = buf; | |
printf("hallo %x\n", (int)str); | |
return 0; | |
} | |
/* | |
gcc a.c | |
a.c: In function ‘main’: | |
a.c:6:23: warning: cast from pointer to integer of different size | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment