//main function definition int main() { int arraySize=1; struct geoData gd[arraySize]; //array of geoData structure gd[0]=createGeoData(50,0.0010,0.5); //createGeoData function is called calculateGeoSeries(gd,arraySize); //calls calculateGeoSeries function return 0; //successful termination of main }
int main() { int arraySize = 7; int i = 0; struct geoData gd[arraySize]; float x = 0.0; for(i=0;i<arraySize;i++) { gd[i] = createGeoData(50,0.001,x); x += 0.2; if(x>1) x=0.5; } calculateGeoSeries(gd,arraySize); return 0; }