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
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is hashing in c?
What are runtime error?
Which is better oop or procedural?
What is character set?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is a header file?
Can you please explain the difference between syntax vs logical error?
How can I access an I o board directly?
What are the restrictions of a modulus operator?
what is a constant pointer in C
How can you convert integers to binary or hexadecimal?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is the explanation for cyclic nature of data types in c?