Skip to content

Commit bf6f632

Browse files
committed
Move note about null terminator to a more appropriate location.
It was confusing to have the note about strings sandwiched between a note about the example code and that code, which is not about strings.
1 parent b0791f1 commit bf6f632

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)