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

Explain how can I convert a number to a string?

0 Answers  


What is the scope of static variables in c language?

0 Answers  


write a program to print %d ?

12 Answers  


Without using main fn and semicolon,print remainder for a given number in C language

2 Answers  


What is the difference between void main and main in c?

0 Answers  






Do you know null pointer?

0 Answers  


Explain what is wrong with this program statement? Void = 10;

0 Answers  


Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

0 Answers  


print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

1 Answers   Winit,


Can math operations be performed on a void pointer?

0 Answers  


What is getch?

0 Answers  


What is function prototype in c with example?

0 Answers  


Categories