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

Explain what are global variables and explain how do you declare them?

635


What is the difference between typedef struct and struct?

594


what type of questions arrive in interview over c programming?

1551


What is %d used for?

580


What does. int *x[](); means ?

632






Is malloc memset faster than calloc?

613


Tell me when would you use a pointer to a function?

604


What are the application of c?

641


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1876


Why do we use int main?

602


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1518


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

566


How do we make a global variable accessible across files? Explain the extern keyword?

1416


What does c value mean?

620


Write a program to swap two numbers without using the third variable?

591