in Technology by
What are the different ways of passing parameters to the functions? Which to use when?

1 Answer

0 votes
by
  • 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.

Related questions

+1 vote
    What are the different ways of passing parameters to the functions in C Programming? Which to use when?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    I've spent the past few hours reading around in here and elsewhere, as well as experimenting, but I ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    I'm trying to make a function in c to create and return a new struct similar to a constructor in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    In my application, I'm displaying a Power BI report. It already works, so there's no problem with showing ... dataset in the report? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    you use the ………… … button to look at the slides in different ways Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    What are the differences between t.test() and t.data.frame()? When do you use these two functions?...
asked Oct 16, 2020 in Technology by JackTerrance
0 votes
    I would like to know if I can compare 2 member functions with the "...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I would like to know if I can compare 2 member functions with the "...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I would like to know if I can compare 2 member functions with the "...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    I would like to know if I can compare 2 member functions with the "...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    I have a React User Profile page that retrieves User object from back-end. User profile object contains a ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    If there are more than one file(main.lua) which contains code and I declare some variables and functions ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    In how many different ways can it be done ? 10 men and 8 women out of which 5men are teachers, 3 men doctors and ... 150 C. 214 D. 20 Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
...