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
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback