String length: Difference between revisions

→‎{{header|Pascal}}: add byte length example
(→‎{{header|Pascal}}: add byte length example)
Line 978:
This works on objects of any sort, not just strings, and includes overhead.
<lang parigp>len(s)=sizebyte(s);</lang>
 
=={{header|Pascal}}==
===Byte Length===
<lang pascal>
const
s = 'abcdef';
begin
writeln (length(s))
end.
</lang>
Output:
<pre>
6
</pre>
 
=={{header|Perl}}==
Anonymous user