Computer Science, asked by parry7347, 1 year ago

What is meant by printf scanf in c programme?

Answers

Answered by LostInJordan
1

☆☞ Here is ur answer ☜☆

✔✔ Printf() function in C language: In C programming language, printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable.

✔️✔️ The program will read in an integer value that the user enters on the keyboard (%d is for integers, as is printf, so b must be declared as an int) and place that value into b. The scanf function uses the same placeholders as printf: int uses %d. float uses %f.

HOPE IT HELPS!

Answered by mehvish61
0
To print is to produce output for the user to read, whereas to scan is to read input from the command line that the user types in. The f at the end stands for "formatted". So both printf and scanf functions use codes within a format string to specify how output or input values should be formatted.
Similar questions