We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b180daf commit ec245a5Copy full SHA for ec245a5
pcl/programs/reverse.pcl
@@ -3,7 +3,7 @@ program reverse;
3
function strlen (var s : array of char) : integer;
4
begin
5
result := 0;
6
- while s[result] != '\0' do result := result + 1
+ while s[result] <> '\0' do result := result + 1
7
end;
8
9
var r : array [32] of char;
0 commit comments