answersLogoWhite

0

Commonly used input/out functions in C are:

* printf( )

* scanf( )

scanf() it is the standard input functions. It is used to get the data from the input devices, which is by default a keyboard, at run time, or execution time. Its general format is:

scanf("one or more format specifier",& one or more variables separated by comma);

For example:

scanf("%d",&a);

scanf("%d%,&a,&b);

printf() It is the standard output functions it is used to show the data to an output device, which is by default a monitor screen, at run time, or execution time. Its general format is:

In case of displaying the message:

printf("Type the message here");

for example:

printf("Hello World");

In case of printing the value:

printf("one or more format specifier", & one or more variables separated by comma);

for example:

scanf("%d",&a);

scanf("%d%f",&a,&b);

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Which header files contain declaration for the files input and output functions and the macros defined and that are used with file input and output functions?

stdio.h


What parts of the human functions as a computer's input and output devices?

the eyes can be used as the input device and the mouth as the output device


Used to accomplish input and output functions?

Typically this would be peripherals in the context of PCs. Peripherals are things such as the keyboard and mouse (input), and the monitor and speakers(output).


Additional components called are used to accomplish input and output functions?

peripheral devices


Is x a output or input in math?

In mathematics, "x" can represent either an input or an output, depending on the context. In functions, "x" is typically the input value, while the function's result, often denoted as f(x), represents the output. In equations, "x" can also be the output when solving for its value. Thus, its role varies based on how it is used.


Why is modem classified as input or output?

A modem can be used for sending (output) and/or receiving (input).


What is the definition of output distance?

Output distance refers to the measurement of the distance between the output of a system or process and a desired or target output. It is commonly used in engineering and mathematics to quantify the accuracy or efficiency of a system in producing the desired results. Output distance can be calculated using various metrics such as Euclidean distance, Manhattan distance, or other distance functions depending on the context of the problem.


What exactly are SerDes commonly used for?

SerDes, or Serializer/Deserializer, is most commonly used in high speed communications to compensate for limited input and output. They are blocks that convert data.


Is a buzzer an input or output device?

output cuz it got swag


Is a graphics tablet an input or output?

A graphics tablet is used to to accept user input to the computer so is classed as input device ...


CD-R input or output device?

a CD is an output device that can be used as a storage or input device


What components are used to accomplish input and output functions?

Variables and the ability to back backward. For example, 2+what=4 4-2=6