Question
What is the output of this C code?
int main()
{
int var = 010;
printf("%d", var);
}
int main()
{
int var = 010;
printf("%d", var);
}
Answer: Option B
Was this answer helpful ?
010 is octal representation of 8.
Was this answer helpful ?
Submit Solution