1. Which data types can be passed on as arguments of a function?
Answers
Answered by
6
Explanation:
You can use variables, literals, expression (i.e. 3 + 5), or even other function calls as arguments. The arguments must match the type of the parameters or be of a type that C++ can convert to the parameter type. The compiler will probably warn you about these type conversions but be careful when passing numbers
harshitaeh8gmailcom:
Thanks
Answered by
3
Answer:
Hope this answer helps you!
Explanation:
Arguments are passed by value; that is, when a function is called, the parameter receives a copy of the argument's value, not its address. This rule applies to all scalar values, structures, and unions passed as arguments. Modifying a parameter does not modify the corresponding argument passed by the function call.
Similar questions