What is the output of the following C++ code?
My answer was "d" (that is 10) because is my understanding that for a while loop to execute the expresion must evaluate to "true" and in this case the expresion num > 10 is false because num=10.
Please correct me if I'm wrong and again please check if the syntax it's OK