+1 vote
15 views
What are the different ways of passing parameters to the functions in C Programming? Which to use when?
in Technology by (190k points)

1 Answer

0 votes
Call by value − We send only values to the function as parameters. We choose this if we do not want the actual parameters to be modified with formal parameters but just used.

Call by reference − We send address of the actual parameters instead of values. We choose this if we do want the actual parameters to be modified with formal parameters.
by (190k points)

Related questions

+1 vote
1 answer 28 views
+1 vote
1 answer 14 views
+1 vote
1 answer 26 views
+1 vote
1 answer 21 views
+1 vote
1 answer 10 views
+1 vote
1 answer 15 views
0 votes
1 answer 33 views
+1 vote
1 answer 19 views
+1 vote
1 answer 42 views
+1 vote
1 answer 17 views
0 votes
1 answer 6 views
+1 vote
1 answer 18 views
+1 vote
1 answer 13 views
...