Hello,world! Part 5
Statements
A block is a set of logically connected statements, surrounded by opening and closing curly braces.
For example:{
cout << "Hello world!";
return 0;
}
You can have multiple statements on a single line, as long as you remember to end each statement with a semicolon. Failing to do so will result in an error.
Comments
Post a Comment