SyntaxFix
Write A Post
Hire A Developer
Questions
Because you're passing a pointer(memory address) to the variable p into the function f. In other words you are passing a pointer not a reference.