C++ notes
For loops
for (uint32_t i=0; i<10; i++) {
printf("i = %d", i);
}
Prints
printf(“unsigned = %u”, var1); printf(“signed = %d”, var1);
Functions
https://softwareengineering.stackexchange.com/questions/286490/what-is-the-difference-between-function-and-functionvoid 6.7.6.3 Function declarators (including prototypes) 10 The special case of an unnamed parameter of type void as the only item in the list specifies that the function has no parameters. 14 An identifier list declares only the identifiers of the parameters of the function. An empty list in a function declarator that is part of a definition of that function specifies that the function has no parameters. The empty list in a function declarator that is not part of a definition of that function specifies that no information about the number or types of the parameters is supplied.145)
Concatenate 2 integer values
https://www.geeksforgeeks.org/how-to-concatenate-two-integer-values-into-one/