Editing C++ style guide
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 120: | Line 120: | ||
=== Pointer and Reference appearance === | === Pointer and Reference appearance === | ||
Declarations of pointers have the '*' character cuddled with the | Declarations of pointers have the '*' character cuddled with the name of the variable. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Line 126: | Line 126: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
However, references have the '&' character cuddled with the | However, references have the '&' character cuddled with the type of the variable. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> |