call by value:

fun(5);

call by reference

fun(&a);


definition call by value