Arrow (->) Operator : Accessing Structure members using Pointer
Use :
- When Structure elements are to accessed by using Pointer then we use Arrow Operator.
- Here Structure variable is of Type Pointer.
struct student
{
char name[20],
int roll;
}*ptr;
- roll number is accessed using ptr->roll
- Name can be accessed using ptr->name
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