Given the following declaration and output statement, assume that this has been embedded in a correct program and is run. What is the output?
enum Direction { N, S, E, W };
//...
cout << W << " " << E << " " << S << " " << N << endl;
The output of the given code is 3 2 1 0.
Reason: enum constants are given default values starting at 0, unless otherwise assigned. The constants increment by 1.