answersLogoWhite

0

sprintf is the most common solution

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

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

Yes


Program to find sum of two numbers in VB.NET language?

Option Explicit Dim a as integer Dim b as integer Dim c as integer Dim result as integer a=val(text1.text) b=val(text2.text) c=val(text3.text) result=a+b+c 'now we want to push the result to another text box ,below code insert into the button click event text4.text=result text1.text="" text2.text="" text3.text="" Rename the cmd button As sum. And run the program by pressing F5 key.


How do you print size of integer?

the size of an integer is determaind by using the function "sizeof(c)",here 'c' is any integer.


How do you convert text into binary in vb or c sharp code?

C# EXAMPLEString text="My sample data";System.Text.ASCIIEncoding encode=new System.Text.ASCIIEncoding();//convert to binary and store in a byte[]byte[] binaryArray=encode.GetBytes(text);


How do you convert integers in character using c?

In C, an integer and a character are the same thing, just represented differently. For example: int x = 65; printf("x = (int) %d, (char) %c\n", x, x) should print "x = (int) 65, (char) A" You can also use the atoi (ascii to integer) and itoa (integer to ascii) functions.


How do you write a program in VB to compare three number and print larger number?

' Return the maximum of a,b,c Function max(ByVal a As Integer, ByVal b As Integer, ByVal c As Integer) As Integer Dim maxAB As Integer maxAB = Math.Max(a, b) Return Math.Max(maxAB, c) End Function


How do you convert number into roman using C?

100 = C as a Roman numeral


Can a union be used in c to convert an integer into a double?

No, but a typecast can: int n; double d; d= (double)n;


Sample text color in C language?

printf("%c[%d;%dmHello World%c[%dm\n",27,1,33,27,0);


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Convert .exe file to .sis formate using C language?

love


How do you convert cyclohexanol to nylon-6?

using cu and NH2OH at 250 C