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 two types of functions in c?

0 Answers  


int i=0,j; j=++i + ++i ++i; printf(" %d",j);

2 Answers   ME,


What is meaning of tree

0 Answers  


Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not

9 Answers   Alcatel,


there is two conditions , 1. while using for loop for printing 1 to 50 no's simulteneous 2. while using printf functios for printing 1 to 50 no's simulteneous with or without using variables who will take more time for compiling and execution? explain in details with reason?

1 Answers  


Wt are the Buses in C Language

0 Answers   Infosys,


which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}

4 Answers   TCS,


What is difference between array and structure in c?

0 Answers  


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

0 Answers   TCS,


write a C code to reverse a string using a recursive function, without swapping or using an extra memory.

9 Answers   Motorola, TCS, Wipro,


how can we Declare a variable in c without defining it.

1 Answers   TCS,


write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised

3 Answers  


Categories