Skip to content

Instantly share code, notes, and snippets.

@pjambet
Created April 13, 2021 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjambet/a374b0cf799705ffd9ec97d035001a96 to your computer and use it in GitHub Desktop.
Save pjambet/a374b0cf799705ffd9ec97d035001a96 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdint.h>
int main() {
long long l = -2;
printf("%lld\n", l);
printf("%llu\n", (unsigned long long) l);
printf("%llu\n", (uint64_t) l);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment