Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

Neyolight

Full Member level 5
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top