Why calling funk(&a) gives a compile error
func(int * & data) {data++;}
int main(){
int a = 5;
int *p = &a;
func(&a); //this gives a compile error
funk(p); //this works fine
}
error: invalid initialization of non-const reference of type ‘int*&’ from an rvalue of type ‘int*’