<<< C++ Arrays | Index | Array Declaration Example >>> |
typename a[ size ]; // array declaration typename a[ size ] = { V1, V2, ..., Vn }; // initializer a[ sub ] = x; // element access x = a[ sub ]; sizeof( a ); // array size in bytes sizeof( a )/sizeof( typename ); // array size
<<< C++ Arrays | Index | Array Declaration Example >>> |