Hi all,
This is just a simple question, and I hope you don't mind.
Is it a good idea to initialize variables?
For example,
double a; //if you don't initialize it, compiler will
//assign number such as -9.2559631349318e+061
For the concern of memory storage, I thought it might be a good idea to initialize it,
double a=0.0;
Please correct me if you have different opinion. Thanks
This is just a simple question, and I hope you don't mind.
Is it a good idea to initialize variables?
For example,
double a; //if you don't initialize it, compiler will
//assign number such as -9.2559631349318e+061
For the concern of memory storage, I thought it might be a good idea to initialize it,
double a=0.0;
Please correct me if you have different opinion. Thanks