pavans2510
Member level 2
Hi all,
This is very basic doubt. Below is the code.
int j ;
int k;
printf ( "\n%d\n", j) ;
printf ( "\n%d\n", k) ;
I get output as
0
1245000
Why does variable value change even if the declaration is same. Is it a random value or is there any reasoning behind this output?
This is very basic doubt. Below is the code.
int j ;
int k;
printf ( "\n%d\n", j) ;
printf ( "\n%d\n", k) ;
I get output as
0
1245000
Why does variable value change even if the declaration is same. Is it a random value or is there any reasoning behind this output?