you defined it again..
Just remove the void from the funciton.
include a header a forward declartion so it will recognize it..
void printSum (void); <-------------------
int main(void){
printSum(); <-------------------------
printf("Hi!\n");
return 0;
}
void printSum (void)
{
printf("Please give two integers\n");
int x,y;
scanf("%d %d", &x,&y);
printf("%d + %d is %d\n",x,y,x+y);
}