Pointer as a parameter in C
Let's say a have a pointer as a parameter, why doesn't it's value remain modified after the and of a function, and i have to use this syntax: void function_name (int **p) { // code } and in main(): int *v; function_name (&v); I want to specify that i use a pointer to a struct type as a parameter.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.