At the top level, you will see the following constructs in a Java program:
|
|
|
|
What this mean is:
|
|
Schematically:
A function can access any variable that is defined outside a function
|
|
|
|
#include <stdio.h> int main( int argc, char* argv[] ) { printf( "Hello World !\n" ); } |
How to run the program:
|
Or:
|
|
|
|
|
|
|