what is the output and why?

😕
int main()
{
int fun();
printf("%d",fun());
getch();
return 0;
}
fun(){
return 011;
}

Replies

  • rama_krish627
    rama_krish627
    The output is 9 why because 011 is in octal it's equivalant decimal is 9.
    Octal numbers are followed by 0.

You are reading an archived discussion.

Related Posts

Folks, check out this wonderful article by Kartik Varma, Founder of to iTrust Financial Advisors. - 5 personal finance mistakes that first time entrepreneurs must avoid Lot of it makes...
hi these are some questions which i and my friend faced today in our lab.. 1) what is the difference b/w PI and PID? 2) what is the practical application...
hi, i wanted to know how good is the scope of learning robotics in India? I've found out that the NSU and NTU in Singapore has a course in Robotics...
Recently, Towns had alarmed the jail broken iPhone owners with the first iPhone worm. The worm created by exploiting the loop hole in iPhone OS grabbed the attention of employers!...
Layoffs are an inevitable aspect of the corporate world, especially in recession. But a poor economy should not be an excuse to cut jobs, says NR Narayana Murthy, Chief Mentor...