C Programming Language

Pass by value

                Arguments can be passed to a function by two methods, They are

  1. pass by value
  2. pass by reference

                 Function in C passes all arguments by value. When a single value is passed to a function via an actual argument, the value of the actual argument is copied into the function. Therefore, the value of the corresponding formal argument can be altered within the function, but the value of the actual argument within the calling routine will not change. This procedure for passing the value of an argument to a function is known as passing by value.


Pass by Value
Function Home Pass by reference
c program stats