answersLogoWhite

0

in C: atof, strtod, sscanf

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

What are 4 string handling function?

strlen(s1) to find the length of the string s1 strcpy(s1,s2) copy source string to destination string(i.e copies s2 to s1,s2 remain unchanged) strcmp(s1,s2) compares s1 and s2 and prints 0 if s1 and s2 are equal,-1 if s2 is greater, 1 if s1 is greater strcat(s1,s2) combines string s1 and s2 to a single word and stores it in s1 strupr() converts lower case string to upper case strlwr() converts upper case string to lower case


How do you convert float into string in python program?

str(3.1415)


Which string function appends source string to the destination?

The string function that appends a source string to a destination string is typically called strcat in C and C++. This function takes two arguments: the destination string and the source string, and it appends the source string to the end of the destination string, modifying the destination string in place. In other programming languages, similar functionality may be achieved with functions like concat or the + operator for string concatenation.


How do you declare a function to return long float?

long float myfun();


What do the function gcvt do in C?

The gcvt() function converts a floating-point number to a string. It converts given value to a null-terminated string.example....#include #include int main(void) { char str[25]; double num; int sig = 5; /* significant digits */ /* a regular number */ num = 9.876; gcvt(num, sig, str); printf("string = %s\n", str); /* a negative number */ num = -123.4567; gcvt(num, sig, str); printf("string = %s\n", str); /* scientific notation */ num = 0.678e5; gcvt(num, sig, str); printf("string = %s\n", str); return(0); }Output:string = 9.876string = -123.46string = 67800

Related Questions

What is a Str function in VB?

Str converts a number to a string.


Will string float or sink in water?

Nope Most string should float on top of water becomes the string material is less dense than he water.


Geta is a math function or string function?

GetA is a math function and not a string function.


Which is string function starchy or strlength?

The string function is strlength and it is evoked to return the length of a string.


What are 4 string handling function?

strlen(s1) to find the length of the string s1 strcpy(s1,s2) copy source string to destination string(i.e copies s2 to s1,s2 remain unchanged) strcmp(s1,s2) compares s1 and s2 and prints 0 if s1 and s2 are equal,-1 if s2 is greater, 1 if s1 is greater strcat(s1,s2) combines string s1 and s2 to a single word and stores it in s1 strupr() converts lower case string to upper case strlwr() converts upper case string to lower case


How do you convert float into string in python program?

str(3.1415)


How do you reverse a string in PHP without using a function?

Without any function is impossible. So I'll assume you mean any coded function, in which case the predefined function below is your answer.$string = strrev($string);


Which string function appends source string to the destination?

The string function that appends a source string to a destination string is typically called strcat in C and C++. This function takes two arguments: the destination string and the source string, and it appends the source string to the end of the destination string, modifying the destination string in place. In other programming languages, similar functionality may be achieved with functions like concat or the + operator for string concatenation.


How do you declare a function to return long float?

long float myfun();


What function are used for string length in visual basic?

string length is a function use to check the lenght of a string i.e number of alphabets in a word or sentence.


Reverse of a string without using string handling function?

shashi


How string can be passed to a function in c?

between parentheses: funname ("string")