in reply to Re^2: Whats wrong in this code?
in thread Whats wrong in this code?

Depends....

Yes, there exist differences between the platforms

And yes, the portable practice is preferable because it is portable

And yes, error checking will let you know if there are errors