Created
July 16, 2019 08:35
-
-
Save surinoel/35f77f7c161db351e8e0d6b3c2ef91fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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) { | |
int i = 100; | |
double d = 3.14; | |
void* p = &i; | |
*(int*)p = 200; | |
printf("%d\n", i); | |
p = &d; | |
*(double*)p = 4.14; | |
printf("%lf\n", d); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment