Results 1 to 1 of 1
--------------------------------------------------------------------------------
As per your suggestion the following program work
#include <stdio.h>
float x[9500][9500];
int main(void)
{
printf("fred\n");
x[9499][9499]=3.0/5.0;
printf("%f\n",x[9499][9499]);
return 0;
}
But when we declare more than one two-dimensional ...
- 12-10-2007 #1Just Joined!
- Join Date
- Dec 2007
- Location
- Meerut, Up, India
- Posts
- 6
Size of array in case of multiple declaration of array of higher size in C
--------------------------------------------------------------------------------
As per your suggestion the following program work
#include <stdio.h>
float x[9500][9500];
int main(void)
{
printf("fred\n");
x[9499][9499]=3.0/5.0;
printf("%f\n",x[9499][9499]);
return 0;
}
But when we declare more than one two-dimensional array then the error" KILLED" is flashed in the following prgram. Please try to help so that i could declare more than one two dimensional array of float type as it is required in our research program.
#include <stdio.h>
float x[9500][9500];
float y[9500][9500];
int main(void)
{
printf("fred\n");
x[9499][9499]=3.0/5.0;
printf("%f\n",x[9499][9499]);
y[9499][9499]=3.0/5.0;
printf("%f\n",y[9499][9499]);
return 0;
}
output message-"killed"


Reply With Quote