We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I had declared an variablw like below,
unsigned int i;
Normally the data representation may be in either decimal or hexadecimal.
In my project the value of 'i' is decimal i need that unsigned integer of decimal form to hexadecimal.
I coudnt use _toacii function since it is truncating the upper nibble of the decimal int.
Can anybody say is there any way to get the equivalent hex of the original decimal integer.
In my project the value of 'i' is decimal .
No, it's not. You may have some number given in ASCII-coded decimal, but that's not the "value of 'i'". You need to go back to your C textbook and learn what a variable is, and what its value means.