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 |
| (++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 |
| (*ptr->name)++ | Increments whatever str points to |
| *ptr++->name | Incrementing ptr after accessing whatever str points to |
Bookmark & Share



0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email