What will be printed out as a result of the following code execution?

enum direction {north, south, east, west};
direction direct = south;
std::cout << direct;
Explanation
Enums are printed as their constant value

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback