Created
April 24, 2015 08:55
-
-
Save MichalBryxi/d665fa07164df936c2a4 to your computer and use it in GitHub Desktop.
Zajímavý úkaz v jazyce C
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" | |
#include "malloc.h" | |
int main() { | |
char *prd = (char*) malloc(32); | |
scanf("%s", prd); | |
printf("%c%c%c%c", *prd, *(prd++), *(prd++), *(prd++)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment