•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 391,867 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,531 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser:
Views: 5420 | Replies: 2
•
•
Join Date: Apr 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hi there
I wonder if anyone can help out a newbie. I am trying to understand the difference between passing variables by reference or value. This is what I understand so far:
1. Passing parameters by value is when the variable is copied into the parameter list of a function or procedure. The value is independent and remains unchanged when passed.
2. Passing parameters by reference is when a value being passed is linked to the original value. THis means that the original value can be altered.
I am not sure on what occasion you would use what and for what reasons...I would be really grateful if someone could explain this to me...
Thanks in advance!
Potsuki
I wonder if anyone can help out a newbie. I am trying to understand the difference between passing variables by reference or value. This is what I understand so far:
1. Passing parameters by value is when the variable is copied into the parameter list of a function or procedure. The value is independent and remains unchanged when passed.
2. Passing parameters by reference is when a value being passed is linked to the original value. THis means that the original value can be altered.
I am not sure on what occasion you would use what and for what reasons...I would be really grateful if someone could explain this to me...
Thanks in advance!
Potsuki
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
ajax asp blog business software computer dell design developer development erp systems experiment firefox howto india intel internet it java linux media microsoft mmorpg msdn networking news office open open-source operating programming project management rss science security software software selection source sql sun super system technology evaluation toread vista warez web wiki windows xp
- Problem passing variables to thread (Perl)
- function passing variables (C)
- passing variables threw query (MySQL)
- Passing variables into form fields (PHP)
- need help with code (C++)
- passing arrays in visual basic (Visual Basic 4 / 5 / 6)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: Is variable++ 1 atomic action?
- Next Thread: Programming Language required



Threaded Mode