Answers for "pointers c functions explained"

0

function pointer in c

// Basic syntax
ret_type (*fun_ptr)(arg_type1, arg_type2,..., arg_typen);

// Example
void fun(int a)
{
    printf("Value of a is %dn", a);
}

// fun_ptr is a pointer to function fun() 
void (*fun_ptr)(int) = &fun;
Posted by: Guest on February-06-2022

Code answers related to "pointers c functions explained"

Browse Popular Code Answers by Language