What is the error in this code ...?byte b = 50; b = b * 50; - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
683 followers study24x7 02 May 2019 06:24 PM study24x7 study24x7

What is the error in this code ...?

byte b = 50; b = b * 50;

A

b cannot contain value 100, limited by its range

B

* operator has converted b * 50 into int, which can not be converted to byte without casting

C

b cannot contain value 50

D

No error in this code

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles