Question from the C++ test

C++ error: undefined reference to `r2'

Hard

Consider the following code snippet

enum ranks {one,two,three};
ranks r = one;

int r1 = r;
ranks r2 = 1;
ranks r3 = ranks(1);

Select the correct options:

Author: Abha AgrawaStatus: PublishedQuestion passed 434 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!