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
Place the #include statement must be written in the program?
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
What is scope and lifetime of a variable in c?
What is assert and when would I use it?
What does struct node * mean?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is the difference between new and malloc functions?
Why structure is used in c?
How arrays can be passed to a user defined function
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
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.
What do you mean by scope of a variable in c?
What are the features of the c language?
How to explain the final year project as a fresher please answer with sample project
How many types of operator or there in c?