i have declared Long checkRandom=0101010101l;
but when I am printing checkRandom it printed checkRandom==17043521
what was the reason its taking checkRandom=17043521 not checkRandom=0101010101
-
6Numbers that start with a zero are treated as octal.r3mainer– r3mainer2016-07-07 10:43:44 +00:00Commented Jul 7, 2016 at 10:43
-
Or this one.Andy Turner– Andy Turner2016-07-07 10:45:23 +00:00Commented Jul 7, 2016 at 10:45
-
1Seems more a duplicate of this to me.BackSlash– BackSlash2016-07-07 10:45:53 +00:00Commented Jul 7, 2016 at 10:45
-
1@BackSlash there is a myriad of potential duplicate questions.Andy Turner– Andy Turner2016-07-07 10:47:23 +00:00Commented Jul 7, 2016 at 10:47
-
@squeamishossifrage yes you are right.thank you allvaibhav patil– vaibhav patil2016-07-07 11:00:06 +00:00Commented Jul 7, 2016 at 11:00
Add a comment
|