Skip to content

Instantly share code, notes, and snippets.

@jrelo
Created November 10, 2016 20:50
Show Gist options
  • Save jrelo/b54d85a92142258e301fd0dda1fdf9c3 to your computer and use it in GitHub Desktop.
Save jrelo/b54d85a92142258e301fd0dda1fdf9c3 to your computer and use it in GitHub Desktop.
unsigned long long int
#include <stdio.h>
#include <limits.h>
int main() {
unsigned long long ulli;
printf("%d", sizeof(ulli));
printf("%llu\n", ULLONG_MAX);
printf("%llu ... or \n", ~(unsigned long long)0);
printf("%llu\n", (unsigned long long)0 - 1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment