Select the correct C# comment from the options below:<! - - This is a C# comment - ->#This is a C# comment?This is a C# comment?// This is a C# comment/*This is a C# comment */
Question
Select the correct C# comment from the options below:<! - - This is a C# comment - ->#This is a C# comment?This is a C# comment?// This is a C# comment/*This is a C# comment */
Solution
The correct C# comment from the options given is:
// This is a C# comment
and
/*This is a C# comment */
In C#, single line comments are made with // and multi-line comments are made with /* and */.
Similar Questions
Which of the following is an invalid identifier in C?
Choose a valid identifier name according to the naming rules of the C language.
What will be the output of the following C program?#include<stdio.h>int main(){char c;c = 'A';printf("%c",c);return 0;}Select one:65Aac
Select the correct answerWhich of the following is invalid?Options_c = 1__cod__ = 1none of the mentioned__c = 1
Which of the following is not a valid C variable name?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.