answersLogoWhite

0


Best Answer

%<width>.<precision>f

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How the printf function uses the format string to set the width and presicion of an output variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do the dependent variable act as the input of a function and the independent variable act as the output of the function?

No.


What is the output variable of a function?

It is a value in the co-domain [range] of the function.


What is another name for the output variable in a function?

Dependent variable


What is the output of a function a variable whose value depends on the input or independent variable?

the output variable is called the dependent variable. For example the function y = f(x) = 3x here x is independent and y is dependent; y changes when you change x


What is output variable?

When you call a function, its parameters may transfer data to the function, back from the function, or both directions. The second sort of them is called as output variable.


Describe how you can tell by looking at the graph of a function with variable is the input variable and which is the output variable?

You cannot.


How do you graph functions?

Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.


What is a dependent quantity?

the output of a function; a variable whose value depends on the value of the input.


What is depended quantity?

the output of a function; a variable whose value depends on the value of the input.


What is main function of printf in a C program?

The syntax for printf is: int printf(const char *format, ...); Simple usage examples: 1. Print character literal: printf("%c", 'a'); 2. Print character variable: printf("%c", my_char); 3. Print string literal: printf("%s", "hello world"); 4. Print string variable: printf("%s", my_string); 5. Print integer variable: printf("%d", my_integer); 6. Print floating-point variable: printf("%f", my_float);


A function is a rule that assigns each value of the variable to exactly one value of the dependent variable?

I found two answers for this question. A function is a rule that assigns to each value of one variable (called the independent variable) exactly one value of another variable (called the dependent variable.) A function is a rule that assigns to each input value a unique output value.


Which variable is also called the dependent variable?

Output variable