address of operator and pointer operator [closed]

There’s only one valid function definition, the 1st one you gave:

Function Definition 1:

 void fun (int* p) {
    p += 1;
 }

Also you probably meant:

    (*p) += 1;

Browse More Popular Posts

Leave a Comment