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 do you mean by scope of a variable in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
how is the examination pattern?
What is the difference between variable declaration and variable definition in c?
Explain void pointer?
What are register variables in c?
What is an array in c?
Explain the difference between exit() and _exit() function?
When is the “void” keyword used in a function?
Explain which function in c can be used to append a string to another string?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What does != Mean in c?
What is a node in c?
Describe how arrays can be passed to a user defined function
Explain the properties of union. What is the size of a union variable