152k views
0 votes
printLarger is a function that accepts two int parameters and returns no value. Two int variables, sales1 and sales2 , have already been declared and initialized. Write a statement that calls printLarger , passing it sales1 and sales2 .

User Charnise
by
5.4k points

1 Answer

3 votes

Answer:

The statement to this question can be given as:

Statement:

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

{

//function body

}

Step-by-step 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.

User Isaac Moses
by
5.3k points