+ 1

Help me in c language

tell me difference between. int x=11; and int x=011;

13th Oct 2017, 6:21 AM
Manjit Kumar
Manjit Kumar - avatar
6 ответов
+ 19
13th Oct 2017, 7:03 AM
Babak
Babak - avatar
13th Oct 2017, 6:37 AM
jay
jay - avatar
+ 6
Left it a little late didn't we? Good luck! Anyway, Here is another source for learning. Explains it differently than the other page. http://members.optusnet.com.au/hancj/hex_oct.html
13th Oct 2017, 6:50 AM
jay
jay - avatar
+ 4
when your integer starts with 0, it's like an octal value 011 in octal = 9 in decimal
13th Oct 2017, 6:34 AM
MBZH31
MBZH31 - avatar
+ 3
001 = 1 ... 007 = 7 010 = 8 011 = 9 ... 017 = 15 020 = 16 ...
13th Oct 2017, 7:03 AM
MBZH31
MBZH31 - avatar
+ 1
then.. how to calculate. its octal value... tell me fast i have examination in half and hour.. and i have to find output of many programs
13th Oct 2017, 6:40 AM
Manjit Kumar
Manjit Kumar - avatar