What are the punctuators in C#?

 Posted by Goud.Kv on 9/4/2014 | Category: C# Interview questions | Views: 3110 | Points: 40
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 

Comments or Responses

Login to post response