Tuesday, March 11, 2008

Default values for bool, int, double, string, char, reference-type variables

TypeDefault Value


bool false


int 0


float 0


string null


char '\0'


ReferenceType null

No comments: