posted 16 years ago
Hi Preetha,
There are two forms of return statements that can be used depending on whether the method is a void or non void method.
return Statement
Form of return Statement In void Method In Non-void Method
return; optional not allowed
return <expression>; not allowed mandatory
So c is not reached because the flow of execution is transfered to the point from where the main() method has been called.
Hope this helps you!
Thanks
[ November 20, 2008: Message edited by: Hemnathbabu Kottaiveedu ]