I'd like to know what the C standard says about the following scenario:
I have a function that returns an int:
If I call this function, and store the return value:Code:int myFunc() { // Note that there is no return statement.. }
What value should x contain? Is this specified to always be 0, or some value, or may it be random garbage?Code:int x = myFunc();



LinkBack URL
About LinkBacks




