0
Why the output of this code is 70?
6 odpowiedzi
+ 5
Numbers starting with 0 are in octal representation.
+ 3
As Valen said numbers starting with 0 are treated as octal numbers.
So in your case 0101 is equivalent to 65 in decimal representation.
after adding 5 then a will become 70
+ 1
How can u explain
0
Then what for hexa decimal representation
0
And tnq for a above reply
0
dongam kalyan in java we use 0x prefix for hexadecimal and 0b prefix for binary. i guess it is same for c