What is the difference between on those two formate in C function?
#include <stdio.h>
void basic_math(double* m_a, double* m_b, double* m_c)
{
*m_c = *m_a + *m_b;
}
int main () {
double a = 2.5;
double b = 3.2;
double c;
basic_math(&a, &b, &c);
printf("ans is %.2lf\n", c);
return 0;
}
if
void basic_math(double* m_a, double* m_b, double* m_c)
{
*m_c = *m_a + *m_b;
}
change into
void basic_math(double *m_a, double *m_b, double *m_c)
{
*m_c = *m_a + *m_b;
}
any difference on that?