[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: return



Tobias Ceglarek schrieb:
> Wieso kann man eigentlich in main() keine negativen Werte zurueckgeben ?

Man kann schon. Die Bedeutung davon ist aber implementierungsabhaengig,
und auf einem Unix-System ist der exit-Status ein Wert zwischen 0 und 
255,
d.h. aus -1 (2er Komplement-Darstellung) wird dort 255.

Zahlendarstellungen werden doch noch in Info-A gemacht, oder?

Elmar.

----------------------------------------------------------------------
Today is Sweetmorn, the 19th day of The Aftermath in the YOLD 3168
----------------------------------------------------------------------
395-"I'll put my head in, and see what's inside."

	(From the Canonical List of Famous Last Words)
----------------------------------------------------------------------