adspace


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

How to assign Null value to Var?

1064


Which namespaces are necessary to create a localized application?

1142


What is an abstract class c#?

969


How do you inherit a class into other class in c#?

995


Why can't we use a static class instead of singleton?

954


What is expression tree in c#?

998