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;
Enums are printed as their constant value
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback