answersLogoWhite

0


Best Answer

int scanf(char* format, ...);

the format accepts the format specifier string, the elipsis operator accepts the variable list

scanf("var type var type ...", &var, &var, ...);

example:

int num1, num2, num3;

scanf("%d %d %d",&num1,&num2,&num3);

Is that what you were looking for?

Maybe this can help also...

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the prototype of scanf in c programmin?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


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 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.


Write a program in c language to subtract two numbers?

#include<stdio.h> #include<conio.h> int main(void) { int sum=0,n,i; clrscr(); printf("\n Enter two no."); scanf("%d%d",&n,&i); sum=n+i; printf("\n%d+%d=%d,n,i,sum); getch(); return 0; }


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 function enables the user to input information while the program is being executed in c?

The scanf() function is a commonly used function to input information during the execution of a program. scanf() function has its prototype in the stdio.h header file. To accept and display a number: int num; printf("Enter a number: "); scanf("%d",&num); printf("You entered %d",num); To accept and display a character, replace %d with %c and make num a character variable [char]. Plus: gets, fgets, read, fread, getchar, getc, fgetc, getch...


Why do you use scanf in c?

To read input from standard input.


How do you read input buffer of keyboard using C?

scanf();