Compare length of two strings: Difference between revisions

add FreeBASIC
(add FreeBASIC)
Line 33:
"short" has length: 5 bytes.
</pre>
 
=={{header|FreeBASIC}}==
<lang>sub comp( A as string, B as string )
if len(A)>=len(B) then
print A, len(A)
print B, len(B)
else
print B, len(B)
print A, len(A)
end if
end sub
 
comp( "abcd", "123456789" )</lang>
{{out}}<pre>123456789 9
abcd 4</pre>
 
=={{header|jq}}==
Line 52 ⟶ 67:
"longer" has length (codepoints) 6 and utf8 byte length 6.
</pre>
 
 
=={{header|Julia}}==
781

edits