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

Ngân Lam

New member
Does the output remain same or different for both cases?
i)
Code:
  char l ='k';
  float b = 19.0f;
  int c;
  c = (l / convert.ToInt32(b));
  Console.Writeline(c);
ii)
Code:
   char l ='k';
   float b = 19.0f;
   int c;
   c = Convert.ToInt32(l / b);
   console.writeline(c);
A. Yes
B. No
 

Tìm kiếm

Back
Top