This is the def of my structure
    typedef struct treeNode
     {
        int data,pos;
        char name[16];
        struct treeNode *left;
        struct treeNode *right;
     }treeNode;
I have created an dynamic object
treeNode *temp;
            temp = (treeNode *)malloc(sizeof(treeNode));
If I have to assign a value to data how should I assign
scanf("%d",temp->data);   //or
scanf("%d",&(temp->data)); //why? because all scanf will look for is address to a location which could be done by temp->data;
and this goes for accessing data also i.e. how should I access the integer part ?
temp->data; //or
*(temp->data) 
 
     
     
    