Search:

Type: Posts; User: laserlight

Search: Search took 0.64 seconds.

  1. Nonetheless, it is still arbitrary, and it is...

    Nonetheless, it is still arbitrary, and it is probably a mistake to use i without further assignment if scanf fails. The correct approach to handling such an input error is not to check if i still...
  2. If there is no correct initial value at that...

    If there is no correct initial value at that point, then there is no correct initialisation (or any initialisation, or no initialisation, is correct). The appropriate solution is to declare the...
  3. The original post contain getchar -- which is...

    The original post contain getchar -- which is standard -- not getch.


    That is only true if the value used in the initialisation is intended. Otherwise, one invalid value is as bad as another...
Results 1 to 3 of 3