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
Inessa05 [86]
4 years ago
13

What does "scanf(\"%d\" mean?

Computers and Technology
2 answers:
Anon25 [30]4 years ago
6 0
Scanf is a c function that takes a formatted imput from stand inpt (usually this is keyboard) 

you would actually need a 2nd parenthesis for this to be a valid function call. (one opening after scanf("%d",variable); <like that, additionally you need to direct to a variable for the value to be stored in memory, and the simi colon i've added to close the function. 

not sure why they have slashes here "\" but you don't need them. %d implies that the value to be stored is an integer, i.e. a number. 
gayaneshka [121]4 years ago
6 0
 the case of scanf(" %d", &x) you are saying "skip all white spaces, and then deal with %d which also will skip white spaces", when the second 'skip white spaces' of %d has no effect
hope it helps
You might be interested in
In GamePoints' constructor, assign teamWhales with 500 and teamLions with 500. #include using namespace std; class GamePoints {
xxMikexx [17]

Answer:

Here is the GamePoints constructor:

GamePoints::GamePoints() :

/* Your code goes here */

{

teamLions = 500;

teamDolphins = 500;

}    

Explanation:

Here is the complete program:

#include  //to use input output functions

using namespace std; //to identify objects like cin cout

class GamePoints {  //class GamePoints

   public: GamePoints(); // constructor of GamePoints class

   void Start() const;  //method of GamePoints class

   private: //declare data members of GamePoints class

   int teamDolphins; // integer type private member variable of GamePoints

   int teamLions; }; // integer type private member variable of GamePoints

   GamePoints::GamePoints()  //constructor

    { teamLions = (500), teamDolphins= (500); }   //assigns 500 to the data members of teamLions  and teamDolphins of GamePoints class

   void GamePoints::Start() const    { //method Start of classs GamePoints

       cout << "Game started: Dolphins " << teamDolphins << " - " << teamLions << " Lions" << endl; }  //displays the values of teamDolphins and teamLions i.e. 500 assigned by the constructor

       int main() //start of main() function

       { GamePoints myGame;  // creates an object of GamePoints class

       myGame.Start(); //calls Start method of GamePoints class using the object

       return 0; }

The output of the program is:

Game started: Dolphins 500 - 500 Lions                    

8 0
3 years ago
4. What will the following line of code produce?
spayn [35]

i believe it would be "Hello there earthling".

8 0
3 years ago
A company produces coffee makers. The labor cost of assembling one coffee maker during the regular business hours is $2.65. If t
DochEvi [55]

Answer:

520

Explanation:

Let's say the x = smallest number of units that must be assembled during the regular hours, and 660-x is the number of units that can be assembled in overtime. Then, the total cost should be smaller than or equal to cost1 *x + cost2*3.75

⇒ (x * 2.65) + ((660 - x) * 3.75) <= 1903

⇒ x * (2.65 - 3.75) + (660 * 3.75) <= 1903

⇒ 1.1 * x >= 2475 - 1903

⇒ 1.1 * x >= 572

⇒ x >= 520

6 0
4 years ago
A/an<br> controls the flow of data between a computer and the network.
strojnjashka [21]

Answer:

The NIC (Network Interface Card)  is the computer network component that controls the flow of data between a computer and the network.

Explanation:

5 0
3 years ago
HELP PL
Nikolay [14]
A. journals

Medical journals, or scientific journals are always a good source for information for something like this!
3 0
4 years ago
Read 2 more answers
Other questions:
  • Why were the spices in Asia so expensive when sold in Europe?
    11·2 answers
  • What does it mean to have an "online presence"? Explain how it can affect a job search?
    11·1 answer
  • Refer to the exhibit. One end of the cable is terminated as displayed, and the other end is terminated in accordance with the T5
    7·1 answer
  • At the beginning of Section 5.2, it is stated that multiprogramming and multiprocessing present the same problems, with respect
    8·1 answer
  • Which of the following are examples of software? (Select all that apply)
    9·2 answers
  • This component is responsible for the logical order of processing?
    11·1 answer
  • What is a major benefit of working with a ready-to-use-cloud-based artifical intelligence (AI) vendor service?
    15·1 answer
  • How many 60 KB jpeg files can be stored on a 2 MB folder in your hard drive?​
    7·1 answer
  • Can’t be opened because apple cannot check it for malicious software.
    15·1 answer
  • Is this statement true or false? While in slide show mode, if you are not careful you can close the application by clicking the
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!