void main()

{

int i=5;

printf("%d",i++ + ++i);

}

Answers were Sorted based on User's Feedback



void main() { int i=5; printf("%d",i++ + ++i); }..

Answer / purushotam111

Answer is 12

Is This Answer Correct ?    4 Yes 1 No

void main() { int i=5; printf("%d",i++ + ++i); }..

Answer / lucky varshney

answer is 11

Is This Answer Correct ?    1 Yes 2 No

void main() { int i=5; printf("%d",i++ + ++i); }..

Answer / susie

Answer :

Output Cannot be predicted exactly.

Explanation:

Side effects are involved in the evaluation of i

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More C Code Interview Questions

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }

4 Answers  


main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }

1 Answers   DCE,


main() { struct date; struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 Answers  






void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }

1 Answers  


main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }

1 Answers  


Write a complete program that consists of a function that can receive two numbers from a user (M and N) as a parameter. Then print all the numbers between the two numbers including the number itself. If the value of M is smaller than N, print the numbers in ascending flow. If the value of M is bigger than N, print the numbers in descending flow. may i know how the coding look like?

2 Answers  


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 Answers  


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

0 Answers  


plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............

2 Answers   Wipro,


Categories