#include<stdio.h>
#include<conio.h>
void main()
{
int a[] = {10,20,30,40,50},j,*p;
clrscr();
for(j=0;j<5;j++)
{
printf("%d",*a);
a++;/*here compiler error "lvalue required"*/
}
p=a;
for(j=0;j<5;j++)
{
printf("%d",*p);
p++;
}
getch();
}
i used turbo c++ compiler.and save this programme as abc.c
why this type of errors occur?