J
johnnash
typedef astruct
{
int x;
} A;
struct b
{
A a;
}B;
struct b *C;
C = &B;
so if i want to access say B.a.x, and if i am going to use the
pointer notation(using C), then is it right to say -
1. (C->a).x
2. (*C).a.x
{
int x;
} A;
struct b
{
A a;
}B;
struct b *C;
C = &B;
so if i want to access say B.a.x, and if i am going to use the
pointer notation(using C), then is it right to say -
1. (C->a).x
2. (*C).a.x