Post Reply 
define questions
06-22-2017, 02:12 AM
Post: #7
RE: define questions
My C is a bit rusty, but I am sure even in C you would get the same behaviour if you create functions with a "standard" 'int x' parameter. You would need to pass the argument by reference (define the parameter as 'int &x') to increment it. I don't think you can do that on the Prime, but I am happy to be corrected.

If I had a guess then I'd say perhaps you have a Java background where everything is an object and passed by reference. :-)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
define questions - webmasterpdx - 06-21-2017, 12:31 PM
RE: define questions - Tim Wessman - 06-21-2017, 02:04 PM
RE: define questions - DrD - 06-21-2017, 02:14 PM
RE: define questions - webmasterpdx - 06-21-2017, 03:17 PM
RE: define questions - Didier Lachieze - 06-21-2017, 11:07 PM
RE: define questions - DrD - 06-21-2017, 09:19 PM
RE: define questions - AlexFekken - 06-22-2017 02:12 AM
RE: define questions - webmasterpdx - 06-22-2017, 12:05 PM



User(s) browsing this thread: 1 Guest(s)