Open shanike opened 2 months ago
If the parameter is passed by reference the original values will be modified in the functions whereas if it is passed by value, the compiler will duplicate the parameters as a local variable for the function and then delete it once it is out of the scope
https://github.com/LeCoupa/awesome-cheatsheets/blob/559d03ecf3db1450a19a0fb5f4b6ba3394a4eae0/languages/C.txt#L205 Was meant to be "only parameters passed by address can be modified"? or "only parameters passed by address are modified"?
Context: Function definition in the C language