Parameter Passing in C - Pointers, Addresses, Aliases
问题 Could someone please explain the difference between parameter passing in C please? According to professor notes there are 4 different ways to pass parameters Call-by-value Call-by-address (pointer) Call-by-alias Global variable / Static variable If you could please give an example, I would greatly appreciate that, and your work would be commended. 回答1: Call-by-value Passing the value to a function as a parameter. If the function modifies the variable, the actual variable won't get changed.