answersLogoWhite

0


Best Answer

A conversion function is a function that converts data from one type to another. A conversion function has one argument of the type being converted from while the return type is the type being converted to. If required, additional arguments may be used to refine the conversion. Conversion functions are required to provide conversions between types that cannot be handled by a built-in cast.

char* itoa(int value, char* str, int base);

This non-standard function is an example of a conversion function, converting a built-in integer type to a null-terminated ASCII string representing the integer's value in a given base. The return value is simply the string pointed to by the strargument.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is conversion function how it is created explain its syntax?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is conversion function How it is created Explain its syntax.?

A conversion function is a function that converts data from one type to another. A conversion function has one argument of the type being converted from while the return type is the type being converted to. If required, additional arguments may be used to refine the conversion. Conversion functions are required to provide conversions between types that cannot be handled by a built-in cast.char* itoa(int value, char* str, int base);This non-standard function is an example of a conversion function, converting a built-in integer type to a null-terminated ASCII string representing the integer's value in a given base. The return value is simply the string pointed to by the strargument.


What is the syntax of data conversion in c?

ghanta


How does syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


Why is syntax important in VB Scripting?

The syntax of function (I hope that Function is related to function syntax):1. Helps you in using or calling the function even though you do not know the whole implementation inside it2. Helps the compiler in performing the cross check of the function called used in code, as it checks if the syntax matches with used one or not.3. Helps in solving compiler error to some extent.I think it is the 'function prototype' what you think of. Syntax is a set of rules that formally describe a programming language.


What is the syntax of function?

Function declaration, definition, or calling? Pick one.

Related questions

What is conversion function How it is created Explain its syntax.?

A conversion function is a function that converts data from one type to another. A conversion function has one argument of the type being converted from while the return type is the type being converted to. If required, additional arguments may be used to refine the conversion. Conversion functions are required to provide conversions between types that cannot be handled by a built-in cast.char* itoa(int value, char* str, int base);This non-standard function is an example of a conversion function, converting a built-in integer type to a null-terminated ASCII string representing the integer's value in a given base. The return value is simply the string pointed to by the strargument.


What is the syntax of data conversion in c?

ghanta


When was Doctor Syntax created?

Doctor Syntax was created in 2000.


How syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


How does syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


When was An Introduction to Latin Syntax created?

An Introduction to Latin Syntax was created in 1750.


Why is syntax important in VB Scripting?

The syntax of function (I hope that Function is related to function syntax):1. Helps you in using or calling the function even though you do not know the whole implementation inside it2. Helps the compiler in performing the cross check of the function called used in code, as it checks if the syntax matches with used one or not.3. Helps in solving compiler error to some extent.I think it is the 'function prototype' what you think of. Syntax is a set of rules that formally describe a programming language.


When was Syntax-Brillian Corporation created?

Syntax-Brillian Corporation was created in 2004-04.


What is the syntax of function?

Function declaration, definition, or calling? Pick one.


The rules for constructing a function can be referred to as the function's?

Syntax refers to the rules for constructing a function.


Implict and empilet of type converision?

An implicit type of conversion does not need a special syntax in the source code, an explicit conversion makes use of the conversion keyword.


What is array Explain with syntax?

an array is a collection of the same data type.