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
What are categories used for in c?
Why header file is used in c?
What are type modifiers in c?
How can I find out if there are characters available for reading?
What is self-referential structure in c programming?
How many keywords are there in c?
What is modifier & how many types of modifiers available in c?
List the difference between a While & Do While loops?
How do I copy files?
What is variable initialization and why is it important?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is the explanation for prototype function in c?
How can you increase the size of a statically allocated array?
What is optimization in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?