A couple of things. You were designating two 'a' and 'b' vars, you need aa and bb. Second your printf used %lf, you need %d
#include <stdio.h>
#include <math.h>
int pointer(int *a, int *b);
int main(void)
{
int a=4;
int b=7;
int *aa;
int *bb;
aa = &a;
bb = &b;
pointer(aa,bb);
return 0;
}
int pointer(int *a, int *b)
{
int result;
result= *a + *b;
printf("%d\n",result);
return 0;
}
John