main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / ledia
The program results in an undefined behaviour. You're wrong
if you have a certain answer. Learn more on the wikipedia
http://en.wikipedia.org/wiki/Sequence_point
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What are the various types of control structures in programming?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What tq means in chat?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is printf () in c?
What are the different types of control structures?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is memory leak in c?
What is the c value paradox and how is it explained?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain how can I open a file so that other programs can update it at the same time?
Not all reserved words are written in lowercase. TRUE or FALSE?
How reliable are floating-point comparisons?
Write a C program in Fibonacci series.
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.