Logo

Programming-Idioms

History of Idiom 169 > diff from v5 to v6

Edit summary for version 6 by programming-idioms.org:
Admin deletes impl 2208

Version 5

2018-01-09, 21:50:20

Version 6

2018-01-10, 19:58:31

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Extra Keywords
size
Extra Keywords
size
Code
n = s.length
Comments bubble
n = s.size is the same