Write code for atoi(x) where x is hexadecimal string.
Answer Posted / audrius
long l = strtol(string, NULL, 16);
//or, if you need unsigned (which you usually do with hexes)
unsigned long ul = strtoul(string, NULL, 16);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does 3 mean in texting?
What is the default value of local and global variables in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Explain the concept and use of type void.
Is it cc or c in a letter?
What are the advantages of c language?
What is scope of variable in c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are the different types of C instructions?
What would be an example of a structure analogous to structure c?
What is identifiers in c with examples?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What are the Advantages of using macro
Explain enumerated types.