I'm a beginner in programming and I have a lot of questions regarding functions and parameters. Here is an example code:
#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;
}
Doubt: What do these parameters indicate in this code? When and why should the parameters be used?