C++ style guide: Difference between revisions

265 bytes added ,  24 April 2017
m
(import more text from the manual)
Line 54: Line 54:
The negation operator is written with a space between the operator
The negation operator is written with a space between the operator
and its target, e.g., {{codeline|! A}}.
and its target, e.g., {{codeline|! A}}.
Declarations of pointers have the '*' character cuddled with the name of the variable.
<pre>
unsigned int *pointer_variable;
</pre>
However, references have the '&' character cuddled with the type of the variable.
<pre>
unsigned int& reference_variable;
</pre>


=== Line Length ===
=== Line Length ===
1,072

edits