Structure : Some Declaration and Meaning | Trick
struct
{
int length;
char *name;
}*ptr;Consider above Structure and Look at the Following Table :-
| Expression | Meaning |
|---|---|
| ++ptr->length | Increment the value of length |
| (++ptr)->length | Increment ptr before accessing length |
| (ptr++)->length | Increment ptr after accessing length |
| *ptr->name | Fetch Content of name |
| *ptr->name++ | Incrementing ptr after Fetching the value |
| (*ptr->name)++ | Increments whatever str points to |
| *ptr++->name | Incrementing ptr after accessing whatever str points to |

