Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA-21-02 Topic 5 Question 33 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 33
Topic #: 5
[All CPA-21-02 Questions]

How could you pass arguments to functions?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Tamra
18 days ago
Passing by pointer? That's like trying to hand someone a ghost. Good luck with that one.
upvoted 0 times
...
Hermila
23 days ago
By void? Really? I guess you could just toss the function a big ol' pile of nothing and see what happens.
upvoted 0 times
...
Elke
25 days ago
I'm going with B) by reference. It's the most common way to pass arguments to functions, and it allows you to modify the original values.
upvoted 0 times
...
Paulene
1 months ago
Hmm, I'm pretty sure it's either A) by value or B) by reference. C) by pointer sounds like it could work, but I'm not 100% sure.
upvoted 0 times
Carolann
18 days ago
Passing arguments by reference means the function can modify the original value.
upvoted 0 times
...
Roslyn
21 days ago
I think passing arguments by value is when a copy of the value is passed to the function.
upvoted 0 times
...
...
Leana
1 months ago
I think the correct answer is B) by reference. You can pass variables to functions and modify them directly.
upvoted 0 times
Vernice
22 days ago
I think passing arguments by pointer is also a valid option, you can manipulate the memory address of the variable.
upvoted 0 times
...
Lenna
27 days ago
I agree, passing arguments by reference allows you to directly modify the variables.
upvoted 0 times
...
...
Wei
2 months ago
Definitely by value or by reference. Passing by pointer is a bit more advanced, and passing by void just doesn't make sense.
upvoted 0 times
Passing by void doesn't seem practical in this context.
upvoted 0 times
...
Josefa
25 days ago
Passing by pointer allows for more flexibility in functions.
upvoted 0 times
...
Annmarie
27 days ago
I prefer passing by reference for efficiency.
upvoted 0 times
...
Joni
1 months ago
I think passing by value is the safest option.
upvoted 0 times
...
...
Pansy
2 months ago
I prefer passing arguments by pointer for more flexibility.
upvoted 0 times
...
Elke
2 months ago
I believe you can also pass arguments by reference.
upvoted 0 times
...
Erick
2 months ago
I think you can pass arguments by value.
upvoted 0 times
...

Save Cancel