What will happen when I try to store negative value in char | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 8

What will happen when I try to store negative value in char

I try it in c and java and I get this result char x=-2; in c x=254 in java x=65534 What did happen here?

10th Jan 2019, 4:09 AM
ABADA S
ABADA S - avatar
1 Resposta
+ 3
lol
11th Jan 2019, 5:31 PM
Mohammad Elahi
Mohammad Elahi - avatar