Hex Editor
Hex Editor - Binary File Editing Software for Windows

. Field Access Operator

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >

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

Syntax:

id.id[.id[.id …]]        
      

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

struct A
{
    struct
    {
        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.

< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.