What is CrazyEngico.com (CE)?

CrazyEngico (CE) is a one-stop solution for interview questions and answers, domain knowledge, e-learning, tutorials, articles and many more learning material.
e-learning - Intelligent e-learning tutorials and articles
Domain Knowledge Learn about various business domains/verticals such as Banking, Financial, Insurance, Healthcare and many more...
Interview Questions and Answers - Post your questions and answers. 1000+ database of ready questions and answers available to prepare for an interview.
Tutorials - 300+ video tutorials from beginner to expert level.
Articles - 300+ technical articles to understand concepts.
Forum - A technical forum to post your queries/responses.

Search Questions

Interview Questions/Answers

Ads
Question
Interview Q & A >> C >> Define and explain scanf () function?

<< Previous Question Navigator Next >>

2        1
Define and explain scanf () function? (Views: 9998)


Answers


7        18

The scanf () function can be used to get input into a program and it requires two arguments. First a format specifier defines the type of data to be entered, then the name of the variable in which the input will be stored. This scanf () function is responsible for giving input into the program.

Submitted By: Anonymous | Created On: 7/11/2009 9:53:18 PM

4        4

The scanf()function can be used to read the data from key board and store the data into a specified variable's memory location.it has two part,first part represent the type of the data to be entered.second part represent the specified variable's memory location
where we have to store the data. 

Submitted By: how we define scanf() function | Created On: 12/25/2010 7:15:05 AM

0        3

can u plz tell me the whole function defination  part of scanf();

Submitted By: aaditya | Created On: 9/24/2011 10:08:36 AM

0        3

scanf () function reads characters from the standard input, interprets them according to the specification in format, and stores the results through the remaining arguments. The format argument is described below; the other arguments, each of which must be a pointer, indicate where the corresponding converted input should be stored. As with printf, this section is a summary of the most useful features, not an exhaustive list.scanf stops when it exhausts its format string, or when some input fails to match the control specification. It returns as its value the number of successfully matched and assigned input items. This can be used to decide how many items were found. On the end of file, EOF is returned; note that this is different from 0, which means that the next input character does not match the first specification in the format string. The next call to scanf resumes searching immediately after the last character already converted.There is also a function sscanf that reads from a string instead of the standard input: int sscanf(char *string, char *format, arg1, arg2, ...)It scans the string according to the format in format and stores the resulting values through arg1, arg2, etc. These arguments must be pointers.

Submitted By: Prarthana Kawlekar (MSCS) California USA | Created On: 3/1/2012 11:16:23 PM

0        1

The C library routine that reads data from the standard inputstream stdin into the locations given by each entry in its argumentlist. The first argument is a format string which controlsinterpretation of the input and each subsequent argument pointsto a variable with a type that corresponds to a type specifier inthe format-string. 

Submitted By: Parth | Created On: 8/8/2012 2:27:13 AM

0        1

The C library routine that reads data from the standard inputstream stdin into the locations given by each entry in its argumentlist. The first argument is a format string which controlsinterpretation of the input and each subsequent argument pointsto a variable with a type that corresponds to a type specifier inthe format-string. 

Submitted By: defination of scanf ? | Created On: 8/8/2012 2:31:07 AM

1        1

the data can be entered into the computer from standard input device by using library function scanf.........the scanf () falls under the category of formatted console I/O functions....

Submitted By: ekta chouhan | Created On: 12/2/2012 9:31:17 AM


Post your Answer
Your answer will be first reviewed by our administrator before it appears on the site.

Your Answer:


 
Display Name:





By clicking on Submit button you agree to the Terms of Service agreement.




Copyright © 2018 CrazyEngico.com. All rights reserved.
CrazyEngico.com is not responsible for the content and CrazyEngico.com does not evaluate or guarantee the accuracy of any CrazyEngico.com content.
Please read our terms of service agreement before using this site.

feedback