Static arrays

Top  Previous  Next

What is translated > Types > Arrays > Static arrays

 

Static arrays in C++ are declared similar as in Delphi:

 

TArray2 = array [1..10] of Char

->

typedef char [ 10 ] TArray2

 

 

While in Delphi the lower bound and the upper bound have to be defined, in C++ arrays are always zero based, Array indices are corrected by DelphiXE2C++11.

 

This MAXIDX macro is used, when a static array is passed to a function, which accepts an open array.

 

 

 



This page belongs to the DelphiXE2Cpp11 Documentation

DelphiXE2Cpp11 home  Content