The original post contain getchar -- which is standard -- not getch.Originally Posted by Tomwa
That is only true if the value used in the initialisation is intended. Otherwise, one invalid value is as bad as another (though admittedly having a null pointer is typically somewhat better than a garbage pointer), regardless of whether you explicitly initialised or just access garbage.Originally Posted by Tomwa