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


Please Help Members By Posting Answers For Below Questions

define string ?

672


Explain what are linked list?

628


FILE PROGRAMMING

1781


What is the difference between c &c++?

649


What is far pointer in c?

815






Can we initialize extern variable in c?

640


Explain how do I determine whether a character is numeric, alphabetic, and so on?

658


Write a program to generate random numbers in c?

667


What is static and volatile in c?

785


What does double pointer mean in c?

584


What is strcpy() function?

662


Why do we use & in c?

595


What is call by reference in functions?

573


What does %p mean c?

634


How do you write a program which produces its own source code as output?

611