Horje
string to decimal c++ strtol Code Example
string to decimal c++ strtol
char hex[] = "6A";                          // here is the hex string
int num = (int)strtol(hex, NULL, 16);       // number base 16
printf("%c\n", num);                        // print it as a char
printf("%d\n", num);                        // print it as decimal
printf("%X\n", num);                        // print it back as hex




Cpp

Related
method Code Example method Code Example
C++ file . Code Example C++ file . Code Example
TypeScript Code Example TypeScript Code Example
print maximum sum subarray Code Example print maximum sum subarray Code Example
Check whether K-th bit is set or not c++ Code Example Check whether K-th bit is set or not c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7