What is the difference function call by value & function
call by reference?
Answer Posted / nb
In call by value,the function arguements will be duplicated
and sent to the called function from the function which is
calling it.
In call by reference ,the function arguements' address will
be passed to the called function by the calling function.
This method is the best practice since address is passed
rather than value.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is optimization in c?
What are valid signatures for the Main function?
What is the difference between test design and test case design?
What are the rules for the identifier?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
How to explain the final year project as a fresher please answer with sample project
Why is c used in embedded systems?
What is modifier & how many types of modifiers available in c?
Combinations of fibanocci prime series
Does c have function or method?
What are the uses of a pointer?
What is c programing language?
Is there any data type in c with variable size?
What is "Duff's Device"?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.