C/C++ Tips
Passing 1D array as function argument Example… // prototype function declaration void calc(double *x); double a[1000]; int main() { // call calc calc(a); } void calc(double *x) { // do some calculations } *************************************************************** Dynamic Memory Allocation for 1D Array int* a = NULL; //… Read more