fork download
  1. #include <stdio.h>
  2. #include <limits.h>
  3. #include <inttypes.h>
  4. int main(){
  5. enum en_e{
  6. en_e_foo,
  7. en_e_bar=UINT64_MAX,
  8. };
  9. enum en_e e = en_e_foo;
  10. printf("%zu\n", sizeof en_e_foo);
  11. printf("%zu\n", sizeof en_e_bar);
  12. printf("%zu\n", sizeof e);
  13. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
4
8
8