Semicolon after while in do-while statement
Posted: Tue Nov 12, 2024 5:05 am
Hello,
Is it mandatory to have the semicolon after while in do-while statement. I read it some where & it says it's not mandatory but when i don't give it i am getting compilation error.
So is there any code example to clarify my doubt?
Thanks in advance!
Is it mandatory to have the semicolon after while in do-while statement. I read it some where & it says it's not mandatory but when i don't give it i am getting compilation error.
So is there any code example to clarify my doubt?
Thanks in advance!