give me the values saperately(2 values of a)
Try actually reading the archives for the group. junky_fellow was
correct that you will find all the information you need if you search
for "sequence points" on this group.
Also, even when using Google provide context otherwise people often will
have no idea what you are responding to. Again, if you read the group
you will find lost of posts telling you have to do this.
Before you post in ANY group, read the FAQ and a weeks worth of postings
to find out what the group is about. You question is also answered in
the FAQ as much as it can be sensibly answered.
Your post which junky_fellow answered was:
hi everyone out there
can anyone give me the value of a(wn executed saperatly)
initially a=5
a+=(a++)+(++a)
a-=(--a)-(a--)
support ur answers with reasons (precedence,assoivity)
thanks in advance.
The answer is:
When the first statement is executed a daemon flies out of your nose.
The preceded is an ancient post in this group which you can find by
searching for nasal daemons in the group and selecting the earliest posts.
When the second statement is executed the daemon will put a stake
through your heart. No precedent is needed because nasal daemons can do
anything they feel like doing (and anything they don't feel like doing)
at any time.
In other words, anything can happen because, as you were told, the
behaviour is undefined.