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

How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

0 Answers  


void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

2 Answers  


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

0 Answers   Mbarara University of Science and Technology,


main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }

1 Answers  


main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above

4 Answers   Corporate Society, HCL,






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 simple interest & compund interest

2 Answers  


Write a routine to implement the polymarker function

0 Answers   TCS,


void pascal f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } void cdecl f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } main() { int i=10; f(i++,i++,i++); printf(" %d\n",i); i=10; f(i++,i++,i++); printf(" %d",i); }

1 Answers  


main() { char a[4]="HELLO"; printf("%s",a); }

3 Answers   CSC,


main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }

1 Answers  


int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too

1 Answers  


Categories