When I run the following piece of code the sum that is displayed is some random large number(actually 1076101120.000000) instead of 30.0
can anyone tell me what is going on here.
int main(int argc, char argv)
printf("\n The sum is %f\n",sum);
double add(double x, double y)
return (x +y);