#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
int my_math(int x, int y, int *product_p);
void app_main() {
int product;
int sum=my_math(3,4,&product);
printf("%d\n%d\n",sum,product);
}
int my_math(int x, int y, int *product_p){
*product_p =x*y;
return x+y;
}
/*
the asterix on line 5 properly declares the pointer and on line 9 we call the *product_p from line 13
and when we return x+y it gets set as the return value for my_math and set equal to sum
/*