R
R.kumaran
hello all
I have a problem in allocating memory for a pointer to an array.
this is my code
void main()
{
int(*a)[20];
*a=(int *)malloc(2*2*sizeof(int));
........
.........
.........
}
when compiled, the compiler reports with an error Lvalue required..
pls help me out to solve this problem
thanks in advance
R.kumaran
I have a problem in allocating memory for a pointer to an array.
this is my code
void main()
{
int(*a)[20];
*a=(int *)malloc(2*2*sizeof(int));
........
.........
.........
}
when compiled, the compiler reports with an error Lvalue required..
pls help me out to solve this problem
thanks in advance
R.kumaran