answersLogoWhite

0

Why do you use scanf in c?

User Avatar

Anonymous

9y ago
Updated: 8/21/2019

To read input from standard input.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

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


Scanf function in c for strings?

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


Can you use scanf to get a string to a c program?

Certainly. That's what sequence %s is good for.


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


How do you use scanf with delimiter in c plus plus Please provide a basic example with output?

scanf does not employ a delimiter. It simply reads formatted input from std::cin.


What happens by the scanf statement in c?

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


Can you use getchar instead of scanf in a c program?

They do different things, read the manual/help for details.


When do we use an address operator in c'?

In C we use & operator while giving address of some variable to some pointer variable. & operator is also used in scanf().


How do you read a character from the keyboard and will store it in the variable?

Use the scanf() function from the C standard library.


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.


Printf and scanf Operators in C and C plus plus?

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