5
Contributors
6
Replies
9
Views
10 Years
Discussion Span
Last Post by Jishnu
0

what does that even mean?
integer is a type
hexadecimal is a representation of integers
it doesn't make any sense to "convert"

0

so you have a string with a number in decimal, and you want to parse it into an integer, and then print it back out into a string in hexadecimal?

you can use atoi() to convert the string into an int, and then use sprintf() with %x for hex to print it back out

0

In c++ how to convert integer value to hexadecimal (in ANSI-C ).

Hey, this is a C++ forum. There is another forum for C.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.