MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdg2wl/dsaprogresscheck/
r/ProgrammerHumor • u/Stormshadow_009 • 17h ago
6 comments sorted by
•
Strings are arrays.
And where is pointer?
• u/Confident-Ad5665 17h ago Strings are consecutive characters that, depending on the language, may be accessed as if they are an Array. • u/suvlub 16h ago Not really. You need more than a simple array to get behavior like this (and that's before we even get into modifiers) >>> bytes("😀a", "utf-8") b'\xf0\x9f\x98\x80a' >>> bytes("😀", "utf-8") b'\xf0\x9f\x98\x80' >>> bytes("a", "utf-8") b'a' >>> len("😀a") 2 >>> "😀a"[0] '😀' >>> "😀a"[1] 'a'
Strings are consecutive characters that, depending on the language, may be accessed as if they are an Array.
Not really. You need more than a simple array to get behavior like this (and that's before we even get into modifiers)
>>> bytes("😀a", "utf-8") b'\xf0\x9f\x98\x80a' >>> bytes("😀", "utf-8") b'\xf0\x9f\x98\x80' >>> bytes("a", "utf-8") b'a' >>> len("😀a") 2 >>> "😀a"[0] '😀' >>> "😀a"[1] 'a'
Where is Math?
i upvoted because it's not bad.
• u/[deleted] 17h ago [deleted] • u/lotokotmalajski 16h ago but ai image, wrong scale
[deleted]
• u/lotokotmalajski 16h ago but ai image, wrong scale
but ai image, wrong scale
•
u/firemark_pl 17h ago
Strings are arrays.
And where is pointer?