File: enum.cpp

package info (click to toggle)
freedink 1.08.20100420-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,600 kB
  • ctags: 4,963
  • sloc: ansic: 56,006; sh: 6,281; makefile: 676; yacc: 291; cpp: 165; perl: 52; xml: 39; sed: 16
file content (9 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

enum youp {a=5000000000, b, c};
int main(void) {
  youp test_enum = a;
  printf("%d\n", test_enum);
  printf("%d\n", sizeof(test_enum));
  return 0;
}