Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Pre vs Post Incrementing variables

by BrowserUk (Patriarch)
on Sep 12, 2010 at 17:41 UTC ( [id://859883]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $i = 0; ++$i = 'fred';;
    Can't modify preincrement (++) in scalar assignment
    
  2. or download this
    #include <stdio.h>
    
    ...
        f( &( ++x ), &( ++x ) );
        return 0;
    }
    
  3. or download this
    junk.c
    junk.c(11) : error C2102: '&' requires l-value
    junk.c(11) : error C2102: '&' requires l-value
    junk.c(11) : error C2198: 'f' : too few arguments for call
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-23 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found