if(strcmp(dumn, temp.) data) == 0)
count++;
temp = temp->next;
what is the "->" used for?
if(strcmp(dumn, temp.) data) == 0)
count++;
temp = temp->next;
what is the "->" used for?
If you have a pointer to a class or struct/union, that is the operator. like:
struct mystruct
{
.....
}
mystruct myinstance
mystruct *mypointer = &myinstance
then you use mypinter->something in the structure.
It's just like :: or ., but for a different scope - indirection.
It is a shortcut for:
(*pointer).pointer_function_or_variable