草庐IT

myVariableName

全部标签

c++ - 未初始化变量的值是如何确定的?

给定一个程序:intmain(){shortmyVariableName1;//storesfrom-32768to+32767shortintmyVariableName2;//storesfrom-32768to+32767signedshortmyVariableName3;//storesfrom-32768to+32767signedshortintmyVariableName4;//storesfrom-32768to+32767unsignedshortmyVariableName5;//storesfrom0to+65535unsignedshortintmyVaria