What is output of the following program ?

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

Answers were Sorted based on User's Feedback



What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / hariram

3 2 1

Is This Answer Correct ?    18 Yes 6 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / murali

3 2 1

Is This Answer Correct ?    11 Yes 5 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / j jhawahar

1,1,2

Is This Answer Correct ?    4 Yes 0 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / guest

error exist due to nat declaring datatype for i

Is This Answer Correct ?    3 Yes 1 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / pooja keshri

321

Is This Answer Correct ?    1 Yes 0 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / chandrakala

error: i doesn't declared in a correct way
int i=1

Is This Answer Correct ?    0 Yes 0 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / navya

1,1,2

Is This Answer Correct ?    1 Yes 2 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / siva

1 1 2

Is This Answer Correct ?    1 Yes 5 No

What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,..

Answer / navi

1 1 1

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More C Interview Questions

What are the back slash character constants or escape sequence charactersavailable in c?

0 Answers  


What is meant by realloc()?

0 Answers  


What is the difference between class and object in c?

0 Answers  


in iso what are the common technological language?

0 Answers  


Explain the process of converting a Tree into a Binary Tree.

0 Answers   Ignou,






write a c program to calculate sum of digits till it reduces to a single digit using recursion

0 Answers   IBM,


Explain what is the concatenation operator?

0 Answers  


What are type modifiers in c?

0 Answers  


How can I read and write comma-delimited text?

0 Answers  


what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 Answers  


WAP to convert text into its ASCII Code and also write a function to decode the text given?

2 Answers  


f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?

5 Answers   Geometric Software,


Categories