find value

P

pwnalwandi

hi everyone out there
can anyone give me the value of a(wn executed)
initially a=5
a+=(a++)+(++a)
a-=(--a)-(a--)
support ur answers with reasons (precedence,assoivity)
thanks in advance.
 
S

ssubbarayan

hi everyone out there
can anyone give me the value of a(wn executed)
initially a=5
a+=(a++)+(++a)
a-=(--a)-(a--)
support ur answers with reasons (precedence,assoivity)
thanks in advance.
Hi,
IMHO your way of questioning would not attract good answers.First of
all this question would seem to be an home work even though yours may
not be a home work in your opinion.To post any question like this,first
type the answers what u got by executing the program and then you could
post the answers and then attract discussions on the answers and to get
explainations how the answer has been arrived upon.
Plain questioning like what you have put may sound like demanding much
which no one would prefer to answer,which is not the purpose for which
u posted this query!

Thats why the last poster has replied in that tone!Try to understand
usenet rules before posting....

Regards,
s.subbarayan
 
K

Keith Thompson

ssubbarayan said:
Hi,
IMHO your way of questioning would not attract good answers.First of
all this question would seem to be an home work even though yours may
not be a home work in your opinion.To post any question like this,first
type the answers what u got by executing the program and then you could
post the answers and then attract discussions on the answers and to get
explainations how the answer has been arrived upon.
Plain questioning like what you have put may sound like demanding much
which no one would prefer to answer,which is not the purpose for which
u posted this query!

Thats why the last poster has replied in that tone!Try to understand
usenet rules before posting....

Good advice for the most part, but I'll add a couple more things.

Don't use abbreviations like 'u' for 'you' or 'ur' for 'your'. They
just make things more difficult to read.

And for the particular question the orginal poster asked, phrasing it
differently or showing what results he got wouldn't help. The code
invokes undefined behavior by modifying a variable twice between
sequence points. There's nothing more to be said.
 
C

CBFalconer

hi everyone out there
can anyone give me the value of a(wn executed)
initially a=5
a+=(a++)+(++a)
a-=(--a)-(a--)
support ur answers with reasons (precedence,assoivity)
thanks in advance.

+-------------------+ .:\:\:/:/:.
| PLEASE DO NOT | :.:\:\:/:/:.:
| FEED THE TROLLS | :=.' - - '.=F
| | '=(\ 9 9 /)='
| Thank you, | ( (_) )
| Management | /`-vvv-'\
+-------------------+ / \
| | @@@ / /|,,,,,|\ \
| | @@@ /_// /^\ \\_\
@x@@x@ | | |/ WW( ( ) )WW
\||||/ | | \| __\,,\ /,,/__
\||/ | | | jgs (______Y______)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
==============================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top