Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

. Field Access Operator

Field access operator is used to access fields in contained scopes.

Syntax:[.id[.id …]]        

The following code fragment illustrates the use of the field access operator:

struct A
        int c;
    } b;
    int Array[b.c];     // access the c field inside the b field

struct, union, case union or pointer field may be used on the left of the field access operator.