Hi,
I have a pointer to structure, and i have to check which member has a desired value.
For that can any one suggest me the best way to access the members while checking for the desired value in that member.
For example ,if i have an array a[]={0,1,2,3};
here say my desired vlue is 2
then i can check
while(--a == 2)
{
break;
}
return(i);
My question is best way to do that when we have a structure instead of array.
I have a pointer to structure, and i have to check which member has a desired value.
For that can any one suggest me the best way to access the members while checking for the desired value in that member.
For example ,if i have an array a[]={0,1,2,3};
here say my desired vlue is 2
then i can check
while(--a == 2)
{
break;
}
return(i);
My question is best way to do that when we have a structure instead of array.
Comment