Does the output remain same or different for both cases?
Posted: Wed Jul 13, 2022 7:56 pm
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
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