May 31, 2014 Const member functions in C Like member functions and member function arguments, the objects of a class can also be declared as const. An object declared as const cannot be modified and hence, can invoke only const member functions as these functions ensure not to modify the object. Cprogramming.com is a web site devoted to the C programming language. It has general, and graphics, programming tutorials, source code, selected links, and an active programming message board. Jul 14, 2017 Definition: A function in C is a group of program statements with a unique name that perform a specific task. Functions are used to provide modularity & reusability to a program.
- The C Standard Library
- C Standard Library Resources
- C Programming Resources
- Selected Reading
Description
The C library function int atoi(const char *str) converts the string argument str to an integer (type int).
Declaration
Following is the declaration for atoi() function.
Int Function In Dev C 2017
Parameters
str − This is the string representation of an integral number.
Return Value
This function returns the converted integral number as an int value. If no valid conversion could be performed, it returns zero.
Int Function In Dev C 4
Example
Int Function In Dev C G
The following example shows the usage of atoi() function.
C# Int Size
Let us compile and run the above program that will produce the following result −