Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

What is difference between "a" and 'a'?

$
0
0

@Dito wrote:

What does function sizeof() do?

sizeof("a")
1

julia> length('a')
1

julia> sizeof('a')
4

julia> sizeof("∀")
3

julia> sizeof('∀')
4

julia> sizeof("🍎")
4

And if sizeof() gives us the size of used memory in bytes why there is difference between “a” and ‘a’ ?

Posts: 7

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images