Write a program to passing int pointer to a function in c

Write a program to passing int pointer to a function in c. In c, passing an int pointer to a function. A function is a set of statements that work together to complete a mission. A pointer is a variable whose value is the address of another variable that is the memory location’s direct address.

#include<stdio.h>
int func(int a, int b) 
{
printf("\n\n a = %d \n", a);
printf("\n\n b = %d \n", b);
}
int main()
{
int(*fptr)(int , int);
fptr = func;
func(5,6);
fptr(7,8); 
return 0;
}

a = 5


b = 6


a = 7


b = 8