please tell me about some my questions.
if (we have a pointer *tmp)-> that my goal is assign that pointer for another pointer ** temp ;
so ,how do we assign for right sytax.

please tell me about some my questions.
if (we have a pointer *tmp)-> that my goal is assign that pointer for another pointer ** temp ;
so ,how do we assign for right sytax.

are u asking something like

int y;
int *p;
int **pp;
p = &y;
pp = &p;

are u asking something like

int y;
int *p;
int **pp;
p = &y;
pp = &p;

thanks for your answer.
so if i have a function and a pointer . i want to point that pointer to that function,how must i do?

thanks for your answer.
so if i have a function and a pointer . i want to point that pointer to that function,how must i do?

read about pointer to function
http://publications.gbdirect.co.uk/c_book/chapter5/function_pointers.html

a small example:

int myfun(int par)
{
   return par+1;
}
int main()
{
    int (*fptr)(int); //pointer to function
    fptr = myfun; //assigning the function to the pointer
    (*fptr)(3); //calling the function using pointer
 // OR
    fptr(3);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.