Computer Science, asked by harkirtpadda6975, 1 year ago

Following variable definition is creating problems x=0281

Answers

Answered by sravanreddyrokkam
6

Answer:

Explanation:

Here if we place zero(0) before any integer while declaration it assumes it as an octal number.So here in the above case we have 0281 if we consider this as octal i.e. 281 as octal it is invalid because in octal number we have only digits from 0 to 7. So that is the reason you are getting issue with the above declaration.

Similar questions