Computer Science, asked by anandkumarsingh8686, 1 year ago

What is the purpose of scanf function in c?

Answers

Answered by fnazneen2d
15
hey here's Ur answer...

The function scan (f) is used for formatted input from the standard input and provides many of the conversion facilities.
It is used for formatted output to standard output device, that is, screen. The format specification string and the data to be output, are the arguments to the print (f) function.

hope it helps u dear!!!
Answered by gratefuljarette
6

Purpose of scanf function:

  • Scanf function in a C language is used to identify characters or any input from the developer. Scanf function is an inbuilt function in any C package which is already declared in the library file.
  • Its macro is defined in “stdio.h “ file. Therefore it is always preferable to use #include<stdio.h> or #include”stdio.h” in our start of the code so that we can use all the inbuilt library functions of C programming language.
Similar questions