Array Initialization - (nf)

davy at pur-ee.UUCP davy at pur-ee.UUCP
Sun Jul 3 09:25:58 AEST 1983


#N:ecn-ec:15500016:000:390
ecn-ec!davy    Jul  2 17:07:00 1983


	On our system, arrays of integers are initialized to zero 
	automatically.  I.e., "int n[100]" produces an array of 100
	integers all equal to 0.  

	Is it ok to assume all UNIX C compilers do this, or do some of
	them not initialize the stuff?  Basically, I need to know if I
	can skip initializing them.

--Dave Curry
decvax!pur-ee!davy

P.S. - We're running 4.1 BSD on a VAX-11/780.



More information about the Comp.lang.c mailing list