How delphi array initialization

https://wenda.so.com/q/1535561587217078
how delphi array initialization
rosegirl09112 level Category: Other been accessed 44 times 2018.07.01 report
satisfactory answer


csx3308362
adoption rate: 42% 9 2018.07.02
var
I: Integer;
of arr1: Array [0..9] of Integer;
arr2 is: Array [0..9] of char;
the begin
// if initialization to each the initial value of the same element, this function may be used Fillchar
FillChar (of arr1, the sizeof (of arr1), 0);
FillChar (arr2 is, the sizeof (arr2 is), # 0);
// if different from the initial value to be assigned to each element, I can be assigned a one
for I: = 0. 9 to do
the begin
of arr1 [I]: = I;
End;
End;

Guess you like

Origin www.cnblogs.com/delphi-xe5/p/10958311.html