Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

How to convert a HEX string to equivalent HEX or DEC number?

$
0
0

Let String s= "1A" and I want to assign equivalent HEX value 1A or DEC value 26 to a integer. What are some efficient way of doing it?

like to decimal to string conversion is done by char c[10]; sprintf(c, "%d", integer_value); is there similar way of doing that?


Viewing all articles
Browse latest Browse all 39796

Trending Articles