?
Find the output of the following program. void main() { int i=01289; printf("%d", i); }
Answer & Solution
Correct Answer:
Option
E
The prefix 0 in an integer value indicates octal value. In octal value use of 8 and 9 is not allowed and hence the error.
Join the Discussion
Login to post a comment or share your explanation.
Login