hi any one help me..
in this pgm if i use pointer in name means it correctly working, but by using array to name it doesnt work properly... it shows lvalue required.. by using array i need to run this pgm....
plz help me...
main()
{
type def struct
{
char name[66]l
int no;
}re;
re can[2];
int a;
can[0].name="xx";
can[1].name="yy";
for(a=0;a<=1;a++)
{
printf("enter no");
scanf("%d",&can[a].no);
}
for(a=0;a<=1;a++)
{
printf("candidate code=%d\tcandidate name=%s\n",can[a].no,can[a].name);
}
getch();
}