Question

In: Computer Science

what does this "->" mean in c? when can you use it?

what does this "->" mean in c? when can you use it?

Solutions

Expert Solution

Please find my answer.

Arrow operator is used for accessing members of structure using pointer variable, below is the syntax of arrow operator in c programming –

Syntax of arrow operator

struct student

{

char name[20],

int roll;

}*ptr;

Access Structure Member Example 1 Example 2

Name is accessed using std.name ptr->name

Roll number is accessed using std.roll ptr->roll


Related Solutions

What does this and *this mean in c++ And how to use them
What does this and *this mean in c++ And how to use them
In C++ what does it mean when it says: "error: stray '\226' inprogram"
In C++ what does it mean when it says: "error: stray '\226' in program"
What does it mean when they say with operating leverage you use fixed costs to maximize return?
What does it mean when they say with operating leverage you use fixed costs to maximize return? How can you used fixed costs for that?
What does the term “Direct Rate” mean? What does the term “Burden Rate” mean? Can you...
What does the term “Direct Rate” mean? What does the term “Burden Rate” mean? Can you give an example? (Project Management)
What does the "CE" in T-accounts mean? When should we use it?
What does the "CE" in T-accounts mean? When should we use it?
How does thought influence the use of language? What does this mean for you as a...
How does thought influence the use of language? What does this mean for you as a professional communicator in a business setting?
You Explain it: What is a residual? What does it mean when a residual is positive?...
You Explain it: What is a residual? What does it mean when a residual is positive? Explain the phrase outside the scope of the model. Why is it dangerous to make predictions outside the scope of the model? Explain what each point on the least-squares regression line represents.
What does professionalism mean to you? In what ways can you personally demonstrate professionalism? How does...
What does professionalism mean to you? In what ways can you personally demonstrate professionalism? How does professionalism impact a workplace (good and bad examples)? Can you think of any specific examples of professionalism for your new career field? Do you care to share any examples of professionalism (or lack of) that you have experienced, either in a current profession or your externship?
What does break and continue mean in C++?
What does break and continue mean in C++?
What does C. Wright Mills mean when he describes sociology as the “intersection of biography and...
What does C. Wright Mills mean when he describes sociology as the “intersection of biography and history”? What is the relationship between personal life and larger social structures described here? Be sure to use specific examples to illustrate your response.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT