If I have struct for instance:
struct head {
   int s; 
   char x;
};
And I have pointer pointing to this struct, how can I access char x using this pointer?
If I have struct for instance:
struct head {
   int s; 
   char x;
};
And I have pointer pointing to this struct, how can I access char x using this pointer?
 
    
    Supposing that you have :
struct head headNode;
struct *head headPtr = &headNode;
you can access char x with :
headPtr->x;
