0 wijitha 10 Years Ago hi all.... In c++ how to convert integer value to hexadecimal (in ANSI-C ). wijitha... c++
0 bugmenot 25 10 Years Ago what does that even mean? integer is a type hexadecimal is a representation of integers it doesn't make any sense to "convert"
0 OPDiscussion Starter wijitha 10 Years Ago sorry it should be convert decimal number to hexadecimal.
0 Ancient Dragon 5,243 10 Years Ago One way to do it is by using standard C function printf() int n = 123; printf("%X", n);
0 bugmenot 25 10 Years Ago 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 Jishnu 160 10 Years Ago In c++ how to convert integer value to hexadecimal (in ANSI-C ). Hey, this is a C++ forum. There is another forum for C.