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

code for reverse alternate words from astring

1 Answers   IBM,


How can I read a directory in a c program?

1 Answers   CSC,


What is echo in c programming?

0 Answers  


Explain what standard functions are available to manipulate strings?

0 Answers  


What is data type long in c?

0 Answers  






Find greatest number out of 10 number without using loop.

5 Answers   TCS,


what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

6 Answers   Microsoft,


what is the use of getch() function in C program.. difference b/w getch() and getche()??

29 Answers   HCL, IBM, Infosys, TCS, Wipro,


what are enumerations in C

0 Answers   TCS,


what is void pointer?

2 Answers  


code snippet for creating a pyramids triangle ex 1 2 2 3 3 3

4 Answers  


can we declare a variable in different scopes with different data types? answer in detail

3 Answers   TCS,


Categories