internetuser2k12
Banned
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.