main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}

what is the output?

Answer Posted / manishsoni

here first in
x = y++ + x++;
x=35+20;
x=55;

then x is incresed by 1;
x=56;
y=36

y=++y + ++x;
y=++36 + ++56;
y=37+57;

y=94;
x=57;
now the value of x = 57.
therefore,after performing all operatioins we get,
x==57 And y==94....

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Place the #include statement must be written in the program?

573


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1259


What is scope and lifetime of a variable in c?

578


What is assert and when would I use it?

580


What does struct node * mean?

602






The __________ attribute is used to announce variables based on definitions of columns in a table?

671


What is the difference between new and malloc functions?

580


Why structure is used in c?

594


How arrays can be passed to a user defined function

579


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2521


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2269


What do you mean by scope of a variable in c?

544


What are the features of the c language?

648


How to explain the final year project as a fresher please answer with sample project

470


How many types of operator or there in c?

603