How do I convert byte to int in C ???

Status
Not open for further replies.

Neyolight

Full Member level 5
Joined
Aug 29, 2011
Messages
306
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
World
Visit site
Activity points
3,624
Hello All !

Ok so I am bit confused about how can I convert byte to int in C.

So lets say we have a variable A in byte. How would I convert the value of A from byte to int.

Thanks !
Neyo
 

Refer to C language specifications. In an assignment, the type conversion will be performed automatically, there's not even a type cast required.
 
it will convert but range should be within 0-255 for unsigned char.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…