z=x+y+z; here z=3+14+14; is the right order so z=31 since func1(y,x,x) is the function call and both y and z in function definition func1(x,y,z) , point to x and x
And x point to y and in this function definition there is no change in x value means in value of y because here x point to y and there ,in function definition func1(x,y,z), is no equation for change in x, it is only contain y and z change.
i.e. func1(x,y,z)
{ y=y+4; so y=10+4;
z=x+y+z; so z=3+14+14;
}
So finally in Program P1()
print x; 31
print y; 3