F
Francogrex
Why this below crashes (when the executable is run)? Is there a way to
avoid it? When I replace n=700-1 by n=100-1 it works but I really need
large values of n how can I deal with it? Thanks
#include <stdio.h>
int main()
{
int i, j, n= 700-1;
int size=(n*(n-1));
double tabP [size] [3];
for(j=0;j< 3;j++)
{
for (i=0;i<size;i++)
{
tabP [j]=0.0;
printf("%f",tabP [j]);
}
}
avoid it? When I replace n=700-1 by n=100-1 it works but I really need
large values of n how can I deal with it? Thanks
#include <stdio.h>
int main()
{
int i, j, n= 700-1;
int size=(n*(n-1));
double tabP [size] [3];
for(j=0;j< 3;j++)
{
for (i=0;i<size;i++)
{
tabP [j]=0.0;
printf("%f",tabP [j]);
}
}