answersLogoWhite

0

It's a function, not a statement. Use your help system to find out its purpose.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What happens by the 'scanf' statement in C programming language?

By using the scanf statement in c,we can take the values at run time . for ex a is a variable of type int so, we can assign the value of a using scanf at run time as follows. scanf("%d",&a); here %d is the conversion specifier for integer type.


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]);


How can you use a single scanf statement to read in three integers from the keyboard?

#include<stdio.h> #include<conio.h> int main(void) { int a,b,c; printf("write three numbers:\n"); scanf("%d %d %d", &a,&b,&c); printf("You entered %d , %d and %d",a,b,c); getch(); }


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);


What is difference between scanf and cin?

scanf is a function (available in C and C++)cin is an istream object (C++ only)Advice: when in doubt, use fgets+sscanf


Is there a function similar to the C plus plus scanf function in JavaScript?

Scanf is part of the C standard library. Although the C++ standard library includes 18 headers from the ISO C90 standard, their usage in C++ is deprecated. However, to answer the question, there is no equivalent to scanf in JavaScript.


What is the syntax of scanf?

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


Scanf function in c for strings?

Use '%s', eg: char name[64]; scanf ("%s", name);


Printf and scanf Operators in C and C plus plus?

No, they are functions. Operators are -> or ++or /=


What is the use of scanf function in c?

Hiii,scanf() is an predefined function of C to getting runtime input from the user.Syntax:-scanf("sequence specifier",&variable_name);example:-#includevoid main(){int number;printf("\n Enter any number"); //message to userscanf("%d",&number); //getting input from userprintf("\n entered number is %d",number); // displaygetch();}


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.