#include <stdio.h>
.
.
.
// Dynamic Array
int **tab=(int**)malloc(sizeof(int*)*n);
for(i=0;i<2;i++)
{
tab[i]=(int*)malloc(sizeof(int)*2);
}
// Array = 0
for(i=0;i<n;i++)
{
tab[i][0]=0;
tab[i][1]=0;
}
.
.
.
The program crashes just after the Array = 0 comment. PLease help my assignment is due.
NOTES: n is given by the user and can be any int.