Question: Need Help in C Programming NOT C++.....!!!!! I am getting the garbage value when printing the array... please help me find out the error... thanks!!

Need Help in C Programming NOT C++.....!!!!!

I am getting the garbage value when printing the array... please help me find out the error... thanks!!

Need Help in C Programming NOT C++.....!!!!! I am getting the garbage

#include #include double *array_dou; double initializeDoubles(int *maxdouble) printf("Enter the max. double value the program should support: "); scanf("Sd",maxdouble); array_dou(double *) malloc((*maxdouble)*sizeof (double)); if(array-dou NULL) printf("Error! memory not allocated."); exit(-1); return array dou: int enterDouble(double *doubles,int dcount) printf("Please enter a double value: ") scanf("8f" , &doubles [dcount]); dcount++; return dcount; int main( int maxdouble; int dcount-0 double *doubles; doubles - initializeDoubles (&maxdouble); dcount -enterDouble (doubles, dcount); printf(" InDouble array "); for(int j-0;j

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!