Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

enum c++

enum Foo { a, b, c = 10, d, e = 1, f, g = f + c };
//a = 0, b = 1, c = 10, d = 11, e = 1, f = 2, g = 12
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #enum
ADD COMMENT
Topic
Name
4+7 =