I am getting an ‘Illegal Expression’ error when creating a const char array of const chars.
Program Foo; (*excerpt*)
Const
X : Char = 'X';
O : Char = 'O';
P : Array [1..2] of Char = (X,O);
Begin
(*stuff*)
End.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m typing this from a device that doesn’t have pascal. So I can’t verify it, but this probably works: