'EGuessStatus Status = EGuessStatus::Invalid_Status;' - Is it necessary?

urc_s02_using_switch_statements

#1

I tried only
‘EGuessStatus Status;’
and it worked.

Is there a reason for putting
‘EGuessStatus::Invalid_Status;’
after ‘EGuessStatus Status’?


#2

I think Ben does that so the value of Status is known at all times. I’m not sure what the value of Status might be if is not defined explicitly. I could be wrong though