Corrected capitalization, corrected to American spellings and typos (#30685)
* Translate challenge subtitles and example challenge text to Spanish * Corrected errors in syntax and punctuation * Multiple corrections of it/s to its plus other grammar corrections * Correction and added paragraph to CSS Flex article * Corrected my own typo * Corrected capitalization, American spellings and typos
This commit is contained in:
@@ -43,7 +43,7 @@ sizeof(int)
|
||||
```
|
||||
Let's start from `sizeof`. The `malloc` needs to know how much space allocate for your data. In fact a `int` variable will use less storage space then a `double` one.
|
||||
It is generally not safe to assume the size of any datatype. For example, even though most implementations of C and C++ on 32-bit systems define type int to be four octets, this size may change when code is ported to a different system, breaking the code.
|
||||
`sizeof` as it's name suggests generates the size of a variable or datatype.
|
||||
`sizeof` as its name suggests generates the size of a variable or datatype.
|
||||
|
||||
```C
|
||||
arrayPointer = (int*) malloc(sizeof(int) * arrayDimension);
|
||||
|
Reference in New Issue
Block a user