void main()
{
int x=25,y=32;
clrscr();
x=x++ + y++;
y=++x + ++y;
printf("%d%d",x,y);
}

Answers were Sorted based on User's Feedback



void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y);..

Answer / myfriend_shankar

ans is 59 93
because
void main()
{
1.x=x++ + y++; 25+32 (bcoz of x=x++ so) 26+32=58
2.y=++x + ++y; 59+34=93(after this x=59)
(becoz of x=x++ the last value 59 be the x value)

Is This Answer Correct ?    13 Yes 1 No

void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y);..

Answer / pushpendra

if you put the values x=25 and y=32 so both values will be simply added because there will proceed clrscr() command .
so write answer is 57 ,61.

Is This Answer Correct ?    11 Yes 8 No

void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y);..

Answer / mounica

57 91

Is This Answer Correct ?    1 Yes 0 No

void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y);..

Answer / prasanna

57 61

Is This Answer Correct ?    9 Yes 12 No

void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y);..

Answer / surendra singh bisht

x=57
y=91

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More C Interview Questions

What is use of null pointer in c?

0 Answers  


Do you know what is a programing language ?

0 Answers  


what are enumerations in C

0 Answers   TCS,


proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

7 Answers   Hughes,


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

10 Answers  






What are the features of c languages?

0 Answers  


What should be keep precautions while using the recursion method?

1 Answers  


what is the c.

3 Answers   IBM, TCS,


What functions are used for dynamic memory allocation in c language?

0 Answers  


When should the volatile modifier be used?

0 Answers  


What is preprocessor with example?

0 Answers  


Why doesn't the code "a[i] = i++;" work?

4 Answers  


Categories