Guys Guys Guys
I can't understand what's going on in your conversation ? The original poster of the code asked how to access the variables of an array but you guys are discussing something else.
For the sake of the original poster i just wanna say that to access the variables of structure use "." operator try the following code:
typedef struct item
printf("\n Enter first variable\t");
printf("\n Enter second variable\t");
printf("\n first value is %d",var.a);
printf("\n second value is %f",var.b);
Enter first variable 25
Enter second variable 62.5
first value is 25
second value is 62.500000
I hope you got it. IF you wanna access variables by using pointers then use "->" operator.