C or C++

Andrew Dubinin orson at spymac.com
Tue Oct 19 02:55:05 MDT 2004


What did you expect? Zero?

> int c; int d=50; unsigned short Age; int e;
> cout << Age << ", " << e << '\n';}
>
> This is output:
> 32767, 268437604

> Does this mean you cannot assume 0 as the default value?
	There is no "default value", it depends on a compiler, system, etc.



More information about the yellowdog-general mailing list