3
Contributors
3
Replies
6
Views
6 Years
Discussion Span
Last Post by rockerjhr
0

Yes, the first is a pointer while the other is not. Example

struct something
{
  int variable;
  // blabla
};

struct somtehing* ptr; // ptr->variable
struct something obj; // obj.variable

Edited by Ancient Dragon: n/a

0

Yes, the first is a pointer while the other is not. Example

struct something
{
  int variable;
  // blabla
};

struct somtehing* ptr; // ptr->variable
struct something obj; // obj.variable

Thank You very much for the fast answer!

0

a->variable = the variable field of the struct a points to

a.variable = the variable field of the struct a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.