answersLogoWhite

0

Converts a character to integer (if it is a numeric character)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How you can convert from string to int in C language?

Use the atoi() or atol() function.


Is it possible to convert a string into integer without using any function in c?

Yes


How do you use atoi command in Linux?

The 'atoi' command is actually a function. It is not peculiar to Linux; it can be found in many high-level programming languages, most notably C, where it has the following signature: int atoi (const char* str); The 'atoi' name is simply a contraction of 'ASCII to integer'. That is; you use the function to convert a null-terminated ASCII string to an integer. The string argument (str) must represent some base 10 numeric symbol. That is, "42", "-1" and "3.14" are all numeric strings but the word "ten" is not. Leading whitespace is ignored by the function. There are also two other versions of the function which convert to long and float: long atol (const char* str); float atof (const char* str); To use these functions you need to include the <stdlib.h> header in C (or <cstdlib> in C++).


How do you create folder with c plus plus?

Use function mkdir.


Why to use gotoxy function in c plus plus?

to locate coordinates ..


How do you enter a sentence as input in c plus plus?

Use the C++ getline() function from the standard library.


How atoi works in c?

atoi ASCII to Integer Is what it does and that should be enough for you to formulate a full marks answer for your homework.


What is the operator of power in c plus plus?

There is no "power" operator in C or C++. You need to the use the math library function pow().


What are the building function in c plus plus?

There is no such term as "building function" in C++.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


Can you use the same function name for member function in c plus plus?

Yes. (And of course you could simply try it, instead of asking.)


What are the functions of Atoi itoa and gcvt in C language?

All these are conversion functions - atoi()-string to integer.itoa()-integer to string.gcvt()-double to string