[fpc-pascal] Initialize records C style

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Tue Jan 30 21:26:51 CET 2018


I have this code in C, the variable p is a 20 element array. However 
only the first two items are initialized. Is this possible in pascal as 
well?

TIA, Darius

struct point {
    int    x;
    int    y;
};

struct point p[20]= {
     {0, 100},
     {3,1}
};



More information about the fpc-pascal mailing list