1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
adelina 88 [10]
4 years ago
8

How I get input from the user in C? Here's my code now:

Computers and Technology
1 answer:
Nataliya [291]4 years ago
4 0

You must use “scanf” statement to read the input. You must also include the necessary header file to use all the built-in functions in any programming languages.

scanf(“%d”, &number);

Since “scanf” is a statement it must end with the semicolon. “scanf” accepts two parameters, first the type of value and second is the address of the variable to store the given input.

Here “&” represents the address of the given variable. “%d” is used for integer, “%f” is used for float, “%s” is used to receive string inputs, etc.

You might be interested in
What are the example of dedicated computers?
Drupady [299]
A dedicated server is a single computer in a network reserved for serving the needs of the network. For example, some networks require that one computer be set aside to manage communications between all the other computers. A dedicated server could also be a computer that manages printer resources.
8 0
3 years ago
Guys please join this link... I want friends...
Serga [27]

Answer:

ok

Explanation:

3 0
3 years ago
Read 2 more answers
Which type of attack is one in which a rogue wireless access point poses as a legitimate wireless service provider to intercept
il63 [147K]
Answer: An evil twin attack poses as a legitimate AP.<span />
7 0
3 years ago
Which plot element is typically the turning point in the most intense moment of a story
Valentin [98]

The climax. The climax is when the story peaks and has the most suspense. The story falls closer to it's end after the climax.

4 0
3 years ago
Read 2 more answers
Given the structure definition shown, assume that circle1 and circle2 are variables of the Circle type and their members have be
kolezko [41]

Answer:

False is the correct answer for the above question.

Explanation:

  • The structure is a user-defined data type, which is used to define the set of different data types and values. Just like in the above question, the class structure holds the list of three variables, which is a type of double.
  • When any user wants to compare the two structure values, then he can do it with the help of comparing all the variables of a structure. if a user wants to compare the circle1 with the value of the circle2, then he needs to compare the circle1.centerX with circle2.centerX, and so on with the other variables.
  • But the above question syntax will directly compare the two structure variable, which is not correct. Hence the above answer is false.
6 0
3 years ago
Other questions:
  • Explain why the 7 bit standard ASCII code needs to have the highest bit set to a zero
    11·1 answer
  • In a microsoft word document, what is the amount of space that appears between paragraphs called?
    14·1 answer
  • For this lab you will find the area of an irregularly shaped room with the shape as shown above.
    7·1 answer
  • In fixed-width files, each record is on a separate line and the fields are separated by a special character.
    7·1 answer
  • 50 pts. please help ! Explain briefly the role, responsibilities, and required background of the production designer of a film.
    12·1 answer
  • For each of the descriptions below, perform the following tasks:
    11·1 answer
  • Jane is creating a slide that will have a large heading and number of bullet points below it. What slide format should she use?
    12·1 answer
  • Help me pls!!! last question
    9·1 answer
  • create your own min function that finds the minimum element in a list and use it in a separate function
    14·1 answer
  • What does input allow a computer to do
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!