Example for passing address to functions in c:
What is the output of below C program.
void fun(int *);
void fun(int *p)
error lvalue required
error rvalue required
we can't use & (address operator) on a constant. So it is a compile time error to do so. error is lvalue required.
Back To Top