G
Guest
Can anyone talk me is there existed a "default" value for a un-initialized
int variable in a release build in VC6 and VC7.1. (I know there is a
compilation warning)
For Example:
main(){
int a;
printf("variable 'a' is un-initialized and its value is = %d\n", a);
}
I want to know whether the compiler will assign a "default" value to
variable 'a' during the release building and the behaviour are the same
between VC6 and VC7.1?
Thanks and regards,
lauch2.
int variable in a release build in VC6 and VC7.1. (I know there is a
compilation warning)
For Example:
main(){
int a;
printf("variable 'a' is un-initialized and its value is = %d\n", a);
}
I want to know whether the compiler will assign a "default" value to
variable 'a' during the release building and the behaviour are the same
between VC6 and VC7.1?
Thanks and regards,
lauch2.