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

Apart from dennis ritchie who the other person who contributed in design of c language.

0 Answers  


write a program to display reverse of a number using for loop?

14 Answers  


please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch

2 Answers  


What are the different types of objects used in c?

0 Answers  


write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"

2 Answers  






Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

0 Answers   Infosys,


Why array starts with index 0

2 Answers  


Is c still used in 2019?

1 Answers  


what is the difference between normal variables and pointer variables..............

15 Answers   HP, Infosys, Satyam, Vivekanand Education Society,


Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A

1 Answers  


what are the interview question's in the language c

2 Answers   Nipuna,


What are data structures in c and how to use them?

0 Answers  


Categories