Wednesday, February 25, 2015

How can I convert a number to a string?

Question:How can I convert a number to a string??

Answer: </I>The standard C library provides several functions for converting numbers of all formats (integers, longs, floats, and so on) to strings and vice versa &nbsp;The following functions can be used to convert integers to strings: <I>Function Name Purpose </I>itoa() Converts an integer value to a string. ltoa() Converts a long integer value to a string. ultoa() Converts an unsigned long integer value to a string. &nbsp;The following functions can be used to convert floating-point values to strings: <I>Function Name Purpose </I>ecvt() Converts a double-precision floating-point value to a string without an embedded decimal point. fcvt() Same as ecvt(), but forces the precision to a specified number of digits. gcvt() Converts a double-precision floating-point value to a string with an embedded decimal point. &nbsp;

Tags:Interview Questions, Languages, C,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Bulk SMS Sending Software

SMS Management System Software

This software used to Send bulk SMS (short text messages) from your computer and assists you to rapidly connect with your customers and staff, communicate with them easily and cheaply, using latest technology that help to generate bulk SMS on just one click to all the database....

No comments:

Post a Comment