Student for life at ecole42
[ <- square bracket
{ <- curly bracket
[ <- square bracket
{ <- curly bracket
I will say it’s deeply satisfying to unpack and understand how this stuff works.
I will say it’s deeply satisfying to unpack and understand how this stuff works.
Python if you want to do stuff that requires programming
I want to make a game -> Python
I want to learn how programming works -> C
Python if you want to do stuff that requires programming
I want to make a game -> Python
I want to learn how programming works -> C
share.unison-lang.org/@unison/webs... @unison/website | Unison Share
share.unison-lang.org/@unison/webs... @unison/website | Unison Share
And I saw it in a video.
And I saw it in a video.
char s[] is a compile time known value, and so sizeof(s) will return the size of the "string"; string length * char size
char s[] is a compile time known value, and so sizeof(s) will return the size of the "string"; string length * char size
It's copied to the stack from the read-only memory when the function is invoked, the stack is where the other function variables live.
Because it's on the stack you can modify the string.
It's copied to the stack from the read-only memory when the function is invoked, the stack is where the other function variables live.
Because it's on the stack you can modify the string.
It's in read-only memory when you program is running, it's in your final binary, along with the machine instructions that are the rest of your compiled program.
It's in read-only memory when you program is running, it's in your final binary, along with the machine instructions that are the rest of your compiled program.
It's like you asked what's the size of a url, but you're actually looking for the length of the document the url **points** to.
It's like you asked what's the size of a url, but you're actually looking for the length of the document the url **points** to.
Sizeof is used to get the number of bytes the object takes in memory, a string is a pointer, it’s _size_ is will always be the same.
Sizeof is used to get the number of bytes the object takes in memory, a string is a pointer, it’s _size_ is will always be the same.
[i | i <- list]
[i | i <- list]