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

Answers were Sorted based on User's Feedback



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

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

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

Answer / vinay

103'g'

Is This Answer Correct ?    17 Yes 5 No

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

Answer / shadab

Answer -> 'g'

Is This Answer Correct ?    2 Yes 1 No

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

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

Post New Answer

More C Sharp Interview Questions

What is type class in c#?

0 Answers  


What is the implicit name of the parameter that gets passed into the set method/property of a class?

0 Answers   Siebel,


What is private constructor c#?

0 Answers  


Can main method be final?

0 Answers  


What is Implementation inheritance

0 Answers  






Difference between value and reference type. What are value types and reference types?

0 Answers  


What’s the difference between System.String and System.Text.StringBuilder classes with example

2 Answers  


What is the difference between and xml documentation tag?

0 Answers  


What are generics in c#.net?

0 Answers  


Can we have static indexer in c#?

0 Answers  


What is a destructor in c#?

0 Answers  


Explain about WSDL

0 Answers   Digital GlobalSoft,


Categories