Hi All,
In the following program if line 1 is uncommented the code throws a compile time error, whereas if line 1 is replaced by Line 2 and Line 3 it works absolutely fine and displays the value of a:5 b:23 c:28
Doubt: If I have understood the concept, is the reason why line 1 doesn't work is because the variable c is not initialized in the main method. And not because the explicit cast is required.
Thanks
added code tags, please read UseCodeTags