+ 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
2 Réponses
+ 3
lol
11th Jan 2019, 5:31 PM
Mohammad Elahi
Mohammad Elahi - avatar