Block (programming): Difference between revisions

Content deleted Content added
#See Also added
Java programmers typically use a slightly different convention
Line 26:
}
</pre>
 
==Other formats==
 
Java programmers typically use a slightly different convention for placing the braces. The opening brace is on the same line as the [[method declaration]]:
 
<pre>
int main() {
return 0;
}
 
int main() {
 
int x=1;
 
if (x == 1) {
x++;
}
 
return 0;
}
</pre>
 
 
 
 
 
 
== See Also ==