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

Can we access array using pointer in c language?

0 Answers  


Is c procedural or functional?

0 Answers  


How can I read in an object file and jump to locations in it?

0 Answers  


which one is highest Priority in c? a)=,b)+,c)++,d)==

4 Answers  


simple program for virtual function?

1 Answers  


What are multibyte characters?

0 Answers  


struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator??

9 Answers   Verifone,


What is the use of keyword VOLATILE in C?

1 Answers  


A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.

4 Answers  


State the difference between x3 and x[3].

0 Answers   Aricent,


What are macros in C?

2 Answers  


is c language is a object oreinted language?

5 Answers   TCS,


Categories