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 is the value of c?

576


How can I invoke another program or command and trap its output?

621


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1766


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

670


What is getch() function?

654






Explain what are bus errors, memory faults, and core dumps?

794


How can I manipulate strings of multibyte characters?

643


How can you find the day of the week given the date?

622


What is structure packing in c?

613


Is it better to bitshift a value than to multiply by 2?

664


Is c# a good language?

614


How is = symbol different from == symbol in c programming?

618


What is scanf () in c?

666


Can the sizeof operator be used to tell the size of an array passed to a function?

622


How do I get a null pointer in my programs?

624