Const (computer programming): Difference between revisions

Content deleted Content added
m linking
C++ convention: this is the c++ section of the article
Line 121:
Bjarne Stroustrup's FAQ recommends only declaring one variable per line if using the C++ convention, to avoid this issue.<ref>{{Cite web | url=http://www.stroustrup.com/bs_faq2.html#whitespace |title = Stroustrup: C++ Style and Technique FAQ}}</ref>
 
The same considerations apply to defining references and (C++) rvalue references:
<syntaxhighlight lang="cpp">
int var = 22;