Answer: In order to group or divide (separate) the code,
punctuators are used. They helps to demarcate the program structure.
Example:
Semicolon (;) is a punctuator which is used to terminate (end) a
statement.
Braces ({,}) are also the punctuators which are used to group number of statements into a separate
block.
class MyClass
{ // Brace
statement1; // Semicolon
statement2;
}
Asked In: Spotted While Learning |
Alert Moderator