On C++ we have two different types of function which are non-returning value or void function and returning value function and what I would like to know under which condition you use either of those functions, and when do you know that you have to pass by reference(ByRef) or by value(ByVal) when you are passing parameters to those functions
Traicey
10
Posting Whiz in Training
Recommended Answers
Jump to PostThere are a lot of considerations but to start with you can use one rule.
-> when you dont want to change the actual variable, you pass by value. in this case in a copy of the variable will be made in the called function and hence the original …
All 4 Replies
Agni
370
Practically a Master Poster
Featured Poster
Traicey
10
Posting Whiz in Training
Agni
370
Practically a Master Poster
Featured Poster
Traicey
10
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.