What are the different types of literals in c#?



What are the different types of literals in c#?..

Answer / Zenia Malhotra

C# has several types of literals: Integer Literals (decimal, int, long), Real Literals (float, double), String Literals (single and verbatim strings), Boolean Literals (true and false), Character Literals (char), and Line Printer Control Literals (Console.WriteLine).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can constructor have return type c#?

1 Answers  


Is int a struct in c#?

1 Answers  


What are the 3 types of comments in c#?

1 Answers  


Explain the advantage of using system.text.stringbuilder over system.string?

1 Answers  


How to make a class non-inheritable other than sealed?

7 Answers  


What is the use of convert toint32 in c#?

1 Answers  


What is difference between throw and throws in c#?

1 Answers  


What is querystring in c#?

1 Answers  


Define property in c#.net?

1 Answers  


Why would you use a class property in c#?

1 Answers  


What is garbage collector and where should you use in .NET?

1 Answers   Siebel,


What is clr in c#?

1 Answers  


Categories