W
wessoo
Hi All.
What is The Lvalue Required error message.
(What does it mean?Is it an abbreviationof something.)
I wrote this test program and I am keeping geting this message.
void main()
{
clrscr();
int (*x)[10];
(*x)=(int *) malloc( 30 * sizeof (int) );
for(int i=0;i<5;i++)
for(int j=0;j<6;j++)
x[j]=i*10+j;
for(i=0;i<5;i++)
for(j=0;j<6;j++)
printf("The index is %d%d at address %d having value
%d\n",i,j,&x[j],x[j]);
}
The compiler is Turbo C for DOS(The same problem with Borland C++ for
Dos too).
MANY THANKS,
KIND REGARDS
What is The Lvalue Required error message.
(What does it mean?Is it an abbreviationof something.)
I wrote this test program and I am keeping geting this message.
void main()
{
clrscr();
int (*x)[10];
(*x)=(int *) malloc( 30 * sizeof (int) );
for(int i=0;i<5;i++)
for(int j=0;j<6;j++)
x[j]=i*10+j;
for(i=0;i<5;i++)
for(j=0;j<6;j++)
printf("The index is %d%d at address %d having value
%d\n",i,j,&x[j],x[j]);
}
The compiler is Turbo C for DOS(The same problem with Borland C++ for
Dos too).
MANY THANKS,
KIND REGARDS