Structure : Some Declaration and Meaning | Trick
Consider above Structure and Look at the Following Table :-struct { int length; char *name; }*ptr;
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 |

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