main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / ankit
11 16 is correct ..
value of x is incremented and is saved in memeory and at
the time of display it will be 11,
as in case of y it will be incremented and will store the
incremented value to be displayed for y.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are header files why are they important?
What is boolean in c?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the difference between break and continue?
How many levels deep can include files be nested?
Can math operations be performed on a void pointer?
What are integer variable, floating-point variable and character variable?
Can you please explain the difference between syntax vs logical error?
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 an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
what is uses of .net
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is a good data structure to use for storing lines of text?
What is the difference between typedef struct and struct?
In c programming language, how many parameters can be passed to a function ?