answersLogoWhite

0

scanf: scanf is a built-in function to read input from the user.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

What is the purpose of scanf in c language?

scanf is used for reading formatted data from stdin. The general syntax is:scanf( format , arguments);For more information on scanf, visit the link below.


What is scanF function?

scanf() is an input function which reads input from the standard input devices such as keyboard. Syntax: scanf("Control Character",address_list); where control character is a sequence of one or more character such as %d,%f,%lf,%lld. Address list specifies the variables, pointers etc. e.g. scanf("%d",&num);


Can you use scanf function within printf function?

Yes: double d; printf ("scanf's just returned %d\n", scanf ("%lf", &d));


Scanf in java?

There is no scanf in Java. It is one of the keywords used in C Programming language


C program to accept a sentence using scanf?

scanf ("%[^\n]s", sentence);


Why not use the ampression symbol in scanf statement in function?

scanf is a function, not a statement. Example: int a; char name[12]; scanf ("%d %s", &a, &name[0]);


Are HTML tags and syntax the same?

No. Syntax is/are the rules of the language, tags are part of the syntax.


How do you prevent syntax in programming?

Not possible; syntax cannot be avoided. (Syntax errors can be though.)


What is the difference between the printf and scanf statements in C?

well major difference between scanf and printf is that scanf is an input statment and printf is an output stament scanf is used to take data in from the user and printf is used to display the result on the screen Regards


What are some common questions about syntax in programming languages?

Common questions about syntax in programming languages include: "What is syntax and why is it important?", "How does syntax differ between programming languages?", "What are some common syntax errors and how can they be avoided?", and "How can I improve my understanding of syntax in a programming language?"


How many types of selection statements in c language?

there are two types of selection statements in c-language they are if-else and switch case.these two are known as selection statements,because their syntax is like this,if-else syntax:-if(condition){statements}else{statement}in the abow syntax it contains two blocks first one is if and second one is else in 'if' it fills with required condition if the condition is satisfied then it execute the if block,whether it is false it execute the else statements.switch case syntax:-switch(condition){case.1:statements;case.2:statements;case.3:statements;...case.n:statements;default:statement;}in abow switch case we can select any case and execute,in this selection statement gives the fiexibulity to the user.it contains default statement it shows the wrong selection in these cases.examples programs to these statements:-1.biggest of two numbers program?main(){int a,b,c;printf("enter a,b values");scanf(&a);scanf(&b);scanf(&c);if(a>b){printf("a is big");}else{printf("b is big");}}out put:-enter a,b values 8,5a is bigenter a,b values 3,9b is big2.perform arithmetic operation intwo numbers?main(){int a,b,c,d;printf("enter a,b values");scanf(&a);scanf(&b);scanf(&c);printf("enter your choice"&c);switch(c){case.1:d=a+b;printf("d value is"&d);case.2:d=a-b;printf("d value is"&d);case.3:d=a*b;printf("d value is"&d);default:printf("wrong selection");}}out put:-enter a,b values 6,5enter your choice 1d=11enter your choice 2d=1enter your choice 3d=30


How syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.