0
I am a beginner in programming and I have a lot of doubt about the functions and the parameters. Follow a code example:
#include math.h
int main(int argc, char *argv[]) // Dúvida nessa linha
{
double x1, x2, y1, y2, d;
double v;
scanf("%lf, %lf, %lf, %lf", &x1, &y1, &x2, &y2);
v = (x1-x2)*(x1-x2) + (y1-y2)*(y12-*y2);
d = sqrt(v);
printf("Distância: %f", d);
return 0;
}
Question: what do these parameters indicate in this code? When and why should the parameters be used?