Hi all,
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.
Code:#include <stdio.h> int main(int argc, char argv[][]) { double x=10.0; double y=20.0; double sum=0.0; sum=add(x,y); printf("\n The sum is %f\n",sum); } double add(double x, double y) { return (x +y); } /End