Skip to content

Commit 727bf5b

Browse files
authored
Merge pull request #482 from per1234/sizeof-irrelevant-sentence
Move note about null terminator to a more appropriate location.
2 parents f00e300 + bf6f632 commit 727bf5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Language/Variables/Utilities/sizeof.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void loop() {
6666

6767
[float]
6868
=== Notes and Warnings
69-
Note that `sizeof` returns the total number of bytes. So for larger variable types such as ints, the for loop would look something like this. Note also that a properly formatted string ends with the NULL symbol, which has ASCII value 0.
69+
Note that `sizeof` returns the total number of bytes. So for larger variable types such as ints, the for loop would look something like this.
7070

7171
[source,arduino]
7272
----
@@ -75,5 +75,7 @@ for (i = 0; i < (sizeof(myInts)/sizeof(myInts[0])); i++) {
7575
}
7676
----
7777

78+
Note that a properly formatted string ends with the NULL symbol, which has ASCII value 0.
79+
7880
--
7981
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)