'
From Free Pascal wiki
Jump to navigationJump to search
│
English (en) │
suomi (fi) │
'
In ASCII, the character code decimal 39
(or hexadecimal 27
) is defined to be '
( Single quotation mark ).
In Pascal programming language, the strings are enclosed in single quotation marks.
program HelloWorld;
var
s:string;
begin
s := 'Hello World!';
writeLn(s);
readln;
end.
If you want to print a single quotation mark in a string, it will double.
Writeln ('ab''cd'); // string containing a single quote
The above line is print:
ab'cd
single characters |
|
character pairs |
|