Skip to content

Instantly share code, notes, and snippets.

@mauro-balades
Last active February 26, 2023 11:19
Show Gist options
  • Save mauro-balades/57614a8ae551731c3b792a7316c53d0d to your computer and use it in GitHub Desktop.
Save mauro-balades/57614a8ae551731c3b792a7316c53d0d to your computer and use it in GitHub Desktop.
Represent a number with value "1"
#include <stdio.h>
int main() {
int num=++*(*(unsigned int(*)[1])(unsigned int[]){0}+!(*(unsigned char*)(&((unsigned int*)0)[1])))<<((!(sizeof(int)%2))?16:0);
printf("num is now %d",num);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment