Quantcast
Viewing all articles
Browse latest Browse all 40121

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

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 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>