I'm having getting an error related to lvalue in this code:
#include <stdio.h>
#include<string.h>
main()
{
int a[]={10,20,30,40,50};
int j;
for(j=0;j<5;j++)
{
printf("%d\n",a);
a++;
}
return 0;
}
The error is displayed is:
lvalue is required as an increment operator.
Why is this problem occuring? Any help will be appreciated.