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


Please Help Members By Posting Answers For Below Questions

What are the various types of control structures in programming?

615


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

657


What tq means in chat?

569


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

682


What is printf () in c?

570






What are the different types of control structures?

570


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1892


What is memory leak in c?

621


What is the c value paradox and how is it explained?

559


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

623


Explain how can I open a file so that other programs can update it at the same time?

579


Not all reserved words are written in lowercase. TRUE or FALSE?

710


How reliable are floating-point comparisons?

615


Write a C program in Fibonacci series.

622


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.

4822