internetuser2k12
Banned
- Joined
- Jul 25, 2012
- Messages
- 1,192
- Helped
- 171
- Reputation
- 342
- Reaction score
- 162
- Trophy points
- 1,343
- Activity points
- 0
Hello!
I have a char variable mydec which holds a value 153. I want to know how to convert this 153 decimal to 0x99 and store it in another char variable like myhex.
The stored value should be in the form 0x99, i.e., 0 and x has to be concatanated to 99 and stored in myhex variable.
Is there any vay to concatanate 0 and x and 99 in C language? I am using mikroC Pro.
I have a char variable mydec which holds a value 153. I want to know how to convert this 153 decimal to 0x99 and store it in another char variable like myhex.
The stored value should be in the form 0x99, i.e., 0 and x has to be concatanated to 99 and stored in myhex variable.
Is there any vay to concatanate 0 and x and 99 in C language? I am using mikroC Pro.