Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.11 seconds.

  1. Re: Variable might not have been initialized?

    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...
  2. Re: Variable might not have been initialized?

    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.
Results 1 to 2 of 2