int a = '3' + '4';
char n = (char)a;
What will be answer of n?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a delegate? How can it works?

612


can multiple catch blocks be executed for a single try statement?

618


Describe the types of comments in c#?

594


Describe ways of cleaning up objects in c#.

589


Why static constructor is parameterless in c#?

674






Is concurrent queue thread safe?

567


What exactly is serverless?

492


Explain the difference between a namespace and assembly name in .net?

576


How do I do implement a assert?

616


What is the difference between private and protected in c#?

572


What is mvc in c#?

545


Different between method overriding and method overloading?

566


Explain the difference between user control and custom control. Also, explain their use.

677


how can one use hcl and c sharp together?

1668


if a method is marked as protected internal who can access it?

643