What is the difference b/w 0123 and 123 in c?

40

Showing Answers 1 - 4 of 4 Answers

Raghavan

  • Jun 27th, 2005
 

0123 is interpreted as an octal number while 123 is interpreted as a decimal number.

vijayan

  • Mar 7th, 2007
 

0123 the number that can be start 0 it will be treated as a octal number that is base 8. 123 is the integer number representation base is 10.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions