Skip to content

Instantly share code, notes, and snippets.

@nefanov
Created September 2, 2019 11:44
Show Gist options
  • Save nefanov/3f3993c0b515c1903820baec806dae84 to your computer and use it in GitHub Desktop.
Save nefanov/3f3993c0b515c1903820baec806dae84 to your computer and use it in GitHub Desktop.
C_intro_quizz
#include <stdio.h>
#include <stdint.h>
int main(void)
{
uint16_t x = 1; /* 0x0001 */
printf("%s\n", *((uint8_t *) &x) == 0 ? "1" : "0");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment