The below program is not functioning properly I don't know if I have called the function "Integer" by passing its address properly....Please help....
insert
Code:
#include<stdio.h>
#include<conio.h>
int integer()
{
int a;
scanf("Enter the second number %d",&a);
return a;
}
int subtract(int c, int (*q)())
{
int h;
h = q; /*integer function called*/
h = c - h;
printf("%d",h);
getch();
}
void main()
{
int a;
scanf("Enter first integer %d", &a);
int (*p)();
p = integer; /*to store the address of integer function*/
subtract(a,p); /*Passed the address of function to subtract*/
getch();
}