What is output of the following program ?

main()
{
i = 1;
printf("%d %d %d\n",i,i++,i++);
}

Answer Posted / hariram

3 2 1

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic dispatch in c++?

552


What is assert and when would I use it?

573


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

639


Is c programming hard?

574


What is the process to generate random numbers in c programming language?

604






How pointers are declared?

556


Are pointers really faster than arrays?

556


What are global variables and explain how do you declare them?

569


How can I delete a file?

626


When should a type cast not be used?

622


What does the && operator do in a program code?

694


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

637


When is a “switch” statement preferable over an “if” statement?

639


How to Throw some light on the splay trees?

617


What is the Purpose of 'extern' keyword in a function declaration?

647