int main()
{
int N = 2;
int M = 3;
int *x[N];
x=(int(*)[N])malloc(M*sizeof(*x));
printf("%ld %ld",sizeof(x),sizeof(*x));
}
I want to understand the statement “x=(int()[N])malloc(Msizeof(*x));”
Out put of above program
int main()
{
int N = 2;
int M = 3;
int *x[N];
x=(int(*)[N])malloc(M*sizeof(*x));
printf("%ld %ld",sizeof(x),sizeof(*x));
}
I want to understand the statement “x=(int()[N])malloc(Msizeof(*x));”
Out put of above program