pavans2510
Member level 2
- Joined
- Jul 25, 2011
- Messages
- 45
- Helped
- 7
- Reputation
- 14
- Reaction score
- 6
- Trophy points
- 1,288
- Location
- Bangalore
- Activity points
- 1,562
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?