Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C & C++ init values

Name: Anonymous 2006-05-01 20:56

Why do all the members of a class are initialized with the value 0 by default? Is it a feature of g++ or is it written in the language? I thought it was undefined (and often "random"). I have the same thing happening with a C program and remember it was not the case on some BSDs systems.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List