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
Can the sizeof operator be used to tell the size of an array passed to a function?
What is a nested formula?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is the best style for code layout in c?
Differentiate between ordinary variable and pointer in c.
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is the difference between variable declaration and variable definition in c?
What is register variable in c language?
What functions are in conio h?
What does double pointer mean in c?
in iso what are the common technological language?
What does s c mean on snapchat?
Who invented bcpl language?
Explain pointers in c programming?