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

How macro execution is faster than function ?

0 Answers   Wipro,


what does data structure mean?

8 Answers  


What is a structure and why it is used?

0 Answers   Hexaware,


Why is sizeof () an operator and not a function?

0 Answers  


What are the different types of data structures in c?

0 Answers  






Why is c so popular?

0 Answers  


what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); }

6 Answers   IBM,


Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.

1 Answers  


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

4 Answers  


what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }

2 Answers   Google,


what is meant by the "equivalence of pointers and arrays" in C?

3 Answers   Satyam,


Categories