I was reading some switch statements and noticed one using endswitch;. Why or why not should one use this? Is it even necessary?
I was reading some switch statements and noticed one using endswitch; . Why or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is used if you use the alternative syntax for control structures.
Thus you could either choose
or
They are functionally identical, and merely provided as syntactic sugar.