Q.- Which two code fragments cause compilation errors?
A) float flt = (float) 1_11.00;
B) double y1 = 402.23;
float flt = y1;
C) int y2 = 100;
float flt = (float) y2;
D) float flt = 1000.00F;
E) Float flt = 300.00;
⧪ please give your answer in a comment section.
A) float flt = (float) 1_11.00;
B) double y1 = 402.23;
float flt = y1;
C) int y2 = 100;
float flt = (float) y2;
D) float flt = 1000.00F;
E) Float flt = 300.00;
⧪ please give your answer in a comment section.
6 Comments
A E
ReplyDeletea b
ReplyDeleteAB
ReplyDeleteB E
ReplyDeleteB E
ReplyDeleteBE
ReplyDelete