Single Choice
Not Set
Q What is the output of this C code?
#include
int main()
{
int var = 010;
printf("%d", var);
}
ID: #1362
Constant in C Language
3,058 views
Question Info
#1362Q ID
Not SetDifficulty
Constant in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Answer:b
010 is octal representation of 8.
Output:
010 is octal representation of 8.
Output:
$ cc pgm4.c $ a.out 8
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic