Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Prefix and postfix increment/decrement operator query

by saurabh.hirani (Beadle)
on Jul 03, 2009 at 04:46 UTC ( [id://776934]=note: print w/replies, xml ) Need Help??


in reply to Re: Prefix and postfix increment/decrement operator query
in thread Prefix and postfix increment/decrement operator query

Did you mean "...11 instead of 10..." since you initialize your variable to 10 rather than to 20?

I was talking about the answer of the operation $a++ + $a--. But yes, as per your observation.the value of $a should be 11 instead of 10.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://776934]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found