+ 3

Give The Output

#include<stdio.h> #include<conio.h> void main() { printf("%d",08); getch(); }

16th Nov 2017, 5:26 PM
Shubham Pratap Singh
Shubham Pratap Singh - avatar
3 Answers
+ 2
You will get an error, thanks to the 0 you placed there before your number. After all, we use a zero to differentiate between numbers in base 8 and 10.(Octal and Decimal). 8 (Base 10) = 10 (Base 8). But 8(Base 8) is invalid, and so you get the error.
17th Nov 2017, 12:56 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 7
Just from first glance, the output should be errors for you to fix. ;)
16th Nov 2017, 5:30 PM
AgentSmith
+ 1
Fix your indentation first, ask questions later.
17th Nov 2017, 8:38 AM
Michael