Difference Between 123 and 0123 in C Language
What is the difference between 123 and 0123 in "C"?
Answers
Answered by
4
123 means 123 in decimal system.
0123 means 123 in octal system so its value in decimal system is
= 64+16+3 = 83
0123 means 123 in octal system so its value in decimal system is
= 64+16+3 = 83
Answered by
1
123 is in decimal number but 0123 is in octal number :
Explanation:
- In the c-programming language, when a user adds the 0 before any number, then the number will be read in an octal number.
- And when the user writes the only number, then it will be presented in the decimal form only.
- Hence 123 is present in decimal number and 0123 is present in the octal number whose value in the decimal is "83".
Learn More :
- C-Language : https://brainly.in/question/12809215
Similar questions