How can I represent this C code in Delphi?
static char *mylist[] = {"aaa", "bbb", "ccc", NULL};
I can create my array as of
keywords : array[0..3] of string;
keywords[0] := 'aaa';
keywords[1] := 'bbb';
keywords[2] := 'ccc';
//Compiler error -> E2010 Incompatible types: 'string' and 'Pointer'
keywords[3] := nil;
nullisC- usenilin Delphi.pcharinstead ofstring.mylistafter this single line? (How to represent it properly in Delphi depends on how the resulting array is being used. Most of the ways you'd use it don't need that construct at all.)