hello everybody,
I have written a simple program with malloc ,and I am getting segmentation fault . Can anyone tell me why its so?
Thanks in advance
Code:#include<stdio.h>
#include<malloc.h>
int main()
{
int **a;
a[0]=(int *)malloc(2*(sizeof(int)));
}