What are the punctuators in C#?

 Posted by Goud.Kv on 9/4/2014 | Category: C# Interview questions | Views: 3196 | Points: 40

In order to group or divide (separate) the code, punctuators are used. They helps to demarcate the program structure.

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

Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response