Vidyalelo
C# Programming · Q6

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 6

Q6

What is the correct way to comment a single line in C#?

A.
-- This is a comment
B.
# This is a comment
C.
// This is a comment
Answer
D.
/* This is a comment */

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board