int a = '3' + '4';
char n = (char)a;
What will be answer of n?
Answers were Sorted based on User's Feedback
Answer / lourdhu raja. d
value of n = 'g'
Value of a here is 103 ('3' = 51; '4' = 52)
so (char)a = 'g'
Is This Answer Correct ? | 21 Yes | 0 No |
Answer / amol more
Hey Hi Guys, we will get the error like below,
Error: Too many characters in character literal
Is This Answer Correct ? | 1 Yes | 6 No |
Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?
What is a private class in c#?
What is difference between property and variable in c#?
What is list array in c#?
What is a string c#?
What does the keyword “virtual†declare for a method or property?
i want o/p 011242110 in c# code.
What is streamreader/streamwriter class?
Why do we need dependency injection in c#?
What?s the difference between an interface and abstract class?
What is gac? What are the steps to create an assembly and add it to the gac?
what is the purpose of interface in c#.net