Again, that's pretty bad advice. How does that answer the underlying problem? What if the grade is less than 44? Should "some default value like 'c'" be returned? No. The OP should fix the logic...
Type: Posts; User: KevinWorkman
Again, that's pretty bad advice. How does that answer the underlying problem? What if the grade is less than 44? Should "some default value like 'c'" be returned? No. The OP should fix the logic...
Here's the problem: What if mark is less than 44? What should be returned then?
In other words, not every path of execution results in grade being initialized.