Can't we do the calculation in "byte"? (How to get the answer in byte??) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 5

Can't we do the calculation in "byte"? (How to get the answer in byte??)

byte a=10; byte b=5; byte c=a+b; System.out.print (c); Here...... the output is "ERROR"

2nd Jul 2020, 2:35 PM
K.Suhanya
K.Suhanya - avatar
2 Réponses
2nd Jul 2020, 3:22 PM
Jesús Roberto GR 🇲🇽
Jesús Roberto GR 🇲🇽 - avatar
+ 4
thank you guys😊
3rd Jul 2020, 12:39 AM
K.Suhanya
K.Suhanya - avatar