Skip to main content

Posts

Showing posts with the label call by reference function in C

Call by Reference Function uses and Benefits in C Program #DOTC_Mdb

Call by Reference Function in C Program.   Hi Everyone, Today we will discuss about call by Reference Function in C . In my previous blog I explained about overview and benefits of functions in C so before starting this topic please go through below blog so that you can easily understand Call by reference Function.   https://dheeraj60.blogspot.com/2020/06/overview-of-functions-in-c-program.html Let’s start with call by reference function in C Program. First thing we need to start the parameters to understand reference function. The parameters are Actual Parameter and Formal parameter. Actual parameter that appears in function call while parameters that appear in function declarations is known as formal parameter. Let’s understand with one example . Int add (int i , int j); Here i and j are formal parameter   and calling the functions as below is Actual parameter. Int a =add(100,200);   So the call by reference method of passing arguments to a function cop...