Host structure array indicator structure in C and C++ applications that use SQL

The figure shows the valid syntax for host structure array indicator structure declarations.

Host Structure Array Indicator Structure

Read syntax diagramSkip visual syntax diagram
>>-+--------+--+----------+--+---------+--struct--+-----+--{---->
   +-auto---+  +-const----+  '-_Packed-'          '-tag-'      
   +-extern-+  '-volatile-'                                    
   '-static-'                                                  

                      .-int-.                                   
>--+--------+--short--+-----+--var-1--[--dimension-1--]--;--}--->
   '-signed-'                                                   

   .-,-----------------------------------------------------.   
   V                                                       |   
>----variable-name--[--dimension-2--]--+-----------------+-+---->
                                       '- = --expression-'     

>--;-----------------------------------------------------------><

Notes:
  1. The struct tag can be used to define other data areas, but they cannot be used as host variables.
  2. dimension-1 and dimension-2 must both be integer constants between 1 and 32767.
  3. _Packed must not be used in C++. Instead, specify #pragma pack(1) prior to the declaration and #pragma pack() after the declaration.