answersLogoWhite

0

Scanf in java

Updated: 10/19/2022
User Avatar

Rad456

Lvl 1
15y ago

Best Answer

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

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Scanf in java
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you use scanf function within printf function?

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


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


What is the syntax of scanf?

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


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


Scanf function in c for strings?

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


Why and is not using ' and ' in reading a string using scanf?

I guess you wanted to ask, why is it scanf ("%s", array)and not scanf ("%s", &array).Well, array is by definition a pointer to the first element: array = &array[0]


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.


What is the full form of printf or scanf?

int printf (const char *fmt, ...)orint scanf (const char *fmt, ...)


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


Is printf and scanf overloaded?

No, they are variadic.