Quote Originally Posted by helloalyssa View Post
i'm asking about both outputs.
When you pass a variable by reference and pointer, you can change the value of the variable in the function. When you pass by value, you are only working with copy of the variable, thus changing its value in the function won't affect the variable.

so in your function, when you call the function fun1(a,b,c) you pass b and c by reference and pointer respectively. "a" is passed by value.