Function calling procedures? and their differences? Why should one go for Call by Reference?



Function calling procedures? and their differences? Why should one go for Call by Reference?..

Answer / Manoj Singh Bisht

In C, a procedure is simply another name for a function. The primary difference between call by value and call by reference is that call by value creates a local copy of the passed argument, while call by reference allows the function to directly modify the original variable. Call by reference can be more efficient when dealing with large data structures or when modifying the original variable is necessary. To achieve call by reference in C, one uses pointers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are void pointers in c?

1 Answers  


Write down the program to sort the array.

4 Answers   Impiger,


difference between ordinary variable and pointer in C?

2 Answers  


WHAT IS MEANT BY LIFE?

2 Answers  


how to add numbers without using arithmetic operators.

14 Answers   TCS,


#include<stdio.h> main() { int i=5; printf("%d",i*i-- - --i*i*i++ + ++i); } tell the answer with correct reason .specially reason is important nt answer ans by turbo c is -39

1 Answers   GameLoft,


What is 1f in c?

1 Answers  


what is the mean of c languages.

1 Answers   Polaris,


Is fortran faster than c?

1 Answers  


What are the languages are portable and platform independent?Why they are like that?

1 Answers   Excel, Satyam,


What are the various types of control structures in programming?

1 Answers  


Write a C program to perform some of the operation which can be performed using Single linked list

1 Answers   Qualcomm,


Categories