Write code for atoi(x) where x is hexadecimal string.
Answer Posted / yuusaku
int num;
sscanf(string,"%x",&num);
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Explain what math functions are available for integers? For floating point?
Should a function contain a return statement if it does not return a value?
can we implement multi-threads in c.
What is the use of typedef in structure in c?
Write a c program to demonstrate character and string constants?
Which one would you prefer - a macro or a function?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is the difference between printf and scanf in c?
What is the difference between union and anonymous union?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is a scope resolution operator in c?
What are pointers in C? Give an example where to illustrate their significance.
What is return type in c?
Tell me is null always defined as 0(zero)?
What is an auto keyword in c?