Vidyalelo
C# Programming · Q16

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 16

Q16

Which of the following is a valid way to declare a character variable in C#?

A.
var letter = 'A';
B.
character letter = 'A';
C.
char letter = "A";
D.
char letter = 'A';
Answer

Answer: Option D

Solution

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