LET''S GET ACQUAINTED!




The simplest C++ program consists of only 8 characters:

main()
{
}
Explain each character in the program:
main - The main program is always called main. Moreover, the C++ programming language distinguishes between capital and small letters.

() - Empty brackets mean that main has no arguments.
{} - Curly brackets indicate the beginning and end of the main program. All actions that must be performed are written inside curly brackets.

What does our program do?
Since there is nothing inside the curly braces, our program does nothing, it simply complies with the rules of the C++ language, it can be compiled and an exe-file can be obtained - an executable file that can be launched for execution.

Task
Run the program, make sure that the program works, but it does not display anything.
Java
1
public class Main 
2
{ 
3
    public static void main(String[] args) 
4
    { 
5
    } 
6
} 
Your last submission is saved in the editor window.
     

Results:

All results: