Skip to content

Instantly share code, notes, and snippets.

@MichalBryxi
Created April 24, 2015 08:55
Show Gist options
  • Save MichalBryxi/d665fa07164df936c2a4 to your computer and use it in GitHub Desktop.
Save MichalBryxi/d665fa07164df936c2a4 to your computer and use it in GitHub Desktop.
Zajímavý úkaz v jazyce C
#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