Block (programming): Difference between revisions

Content deleted Content added
Line 29:
==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]] declaration:
 
<source lang="java>
<pre>
int main() {
return 0;
Line 46:
return 0;
}
</presource>
 
Visual Basic requires an explicit End statement, as follows: