Examveda

Does the output remain same or different for both cases?
i.
char l ='k';
float b = 19.0f;
int c;
c = (l / convert.ToInt32(b));
Console.Writeline(c);

ii.
char l ='k';
float b = 19.0f;
int c;
c = Convert.ToInt32(l / b);
console.writeline(c);

A. Yes

B. No

Answer: Option B


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp