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]
3 years ago
13

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

Computers and Technology
2 answers:
Anon25 [30]3 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]3 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
These operating systems were referred to as command-based.
Doss [256]

{\underline{\boxed{\bf{MS - DOS \:  and \:  UNIX}}}}

3 0
3 years ago
Read 2 more answers
Write a program that accepts a time as an hour and minute. Add 15 minutes to the time, and output the result. Example 1: Enter t
Liula [17]

Answer:

Explanation:

C++ Code

#include <iostream>

#include <cstdlib>

using namespace std;

int main(){

double hour,minute;

cout<<"Enter Hours :";

cin>>hour;

cout<<"Enter Minutes :";

cin>>minute;

minute = minute+15;

if(minute >=60){

 hour++;  

 minute = minute-60;

}

if(hour>23){

 hour = 0;

}

cout<<"Hour: "<< hour<< " Minutes: "<<minute;

return 0;  

}

Code Explanation

First take hours and minutes as input. Then add 15 into minutes.

If minutes exceeds from 60 then increment into hours and also remove 60 from minutes as hours already incremented.

Then check if hours are greater then 23 then it means new day is start and it should be 0.

Output

Enter Hours :9

Enter Minutes :46

Hour: 10 Minutes: 1

5 0
3 years ago
How many slides would be in a PowerPoint presentation based on the formatting of the Word outline?
IrinaVladis [17]

Answer:

A. two

Explanation:

can i have brainliest please

5 0
3 years ago
Read 2 more answers
If you select three separate parcels from a parcel feature class, how many rows would be selected in the associated attribute ta
Juliette [100K]

Answer

Three

Feature classes are the collections of common features,these collections each has a spatial representation such  as points. and common set of attribute columns. so if you select three separate parcels from a future class  three rows will be selected in the selected attribute table because each representation has spatial representation.

3 0
4 years ago
printLarger is a function that accepts two int parameters and returns no value. Two int variables, sales1 and sales2 , have alre
OleMash [197]

Answer:

The statement to this question can be given as:

Statement:

void printLarger(int sales1, int sales2)//function declaration.

{

//function body

}

Explanation:

Function is a group of organized code that is used to perform some specific task.

Syntax:

return-type functionname(parameters1,....parameter n)

{

//function body.

}

In the above function definition we define a function that is "printLarger". This function accepts two integer parameters that is "sales1 and sales2" and does not return any value because we use return-type void.

7 0
3 years ago
Other questions:
  • Determine encryption that is needed to provide security for the company’s system. This will include plans to address: Passive an
    11·1 answer
  • In this problem we consider sending real-time voice from Host A to Host B over a packet-switched network (VoIP). Host A converts
    12·1 answer
  • Implement function hex2dec that takes a hex number hex_num as a string argument and prints out the corresponding decimal number.
    6·1 answer
  • In a CPMT, a(n) ____ should be a high-level manager with influence and resources that can be used to support the project team, p
    10·1 answer
  • ) Briefly describe the purpose of the DASH protocol in streaming videos.
    9·1 answer
  • The famous study entitled ""Protection Analysis: Final Report"" focused on a project undertaken by ARPA to understand and detect
    14·1 answer
  • What is the purpose of the Excel Function Reference?
    9·1 answer
  • Adobe Indesign project 4 museum indesign file. The instructions are 70 pages long I cant sit still long enough to read them
    11·1 answer
  • Ken has discovered that a vice president of his company has been using his computer to send data about a new product to a compet
    15·1 answer
  • Brianna is taking a backpacking trip in the wilderness and wants to back up the photos from her camera. Which type of storage de
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!