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
AnnyKZ [126]
3 years ago
15

Practice problems on functions. Write C function(s) to carry out the specified tasks. For each problem, also write the suggested

application program(s) that apply the function. (1) Write a function multiPrint(int n, char c) that prints n copies of a character c.
Computers and Technology
1 answer:
scoray [572]3 years ago
3 0

Answer:

Function:

int fun(int n,char c) // function definition with a two argument in which variable n is a integer type and variable c is a character type.

{

   while(n>0)// while loop

   {

       printf("%c",c); // print statement for character

       n--; // decrease statement to false the loop.

   }

   return 0; //return statement.

}

output:

  • When the user pass n=5 and c='a', it will prints 5 times 'a' character.
  • When the user passes n=10 and c='t', it will print 10 times 't' character.

Explanation:

  • Firstly we declare a function of two arguments in which variable n is an integer type and variable c is a character type.
  • Then in the function body, we use while loop from n times iteration because question demands to print n time any character.
  • Then in the loop body, we use a print statement to print a character and a decrease statement to false the loop after a finite iteration.

You might be interested in
A user reports that a file they shared out on their computer for another network user is not accessible to the third party. The
muminat

Answer:

i think it's going to be c

Explanation:

3 0
3 years ago
What term refers to a celebrity or other popular figure publicly supporting a product?
IgorLugansk [536]

Answer:

Endorsement

Explanation:

The term that refers to this is known as an Endorsement. This can be for any product or service and generally involves a celebrity or public figure that in one way or another relates to the product or service being advertised. One example of this would be famous soccer icon Christiano Ronaldo publicly supporting and appearing in Nike advertisements showing off their new soccer cleats.

3 0
3 years ago
What errors does the grammar tool find? Choose all that apply
Anestetic [448]

Answer:

2

Explanation:

Because comma splices are not a thing.

(at least i don't think they are)

7 0
3 years ago
Rishilaugh I would like to change my username
allsm [11]

Answer: just text them through their help thing or settings.

Explanation:

3 0
3 years ago
Read 2 more answers
3. Which icon image is greater in file size? (Show your working) [2]
kipiarov [429]

Answer:

I would go with b. A 16 colour icon with dimensions of 100 x 100 pixels.

Explanation:

Even though the first colour icon has more colours, the second has double the pizels in the both the height and width.

Hope this answer helps!

5 0
3 years ago
Other questions:
  • HELP PLEASE
    7·2 answers
  • Answer this question please
    6·1 answer
  • What is the process called that determines how bits are represented on the medium?
    9·1 answer
  • The second row of letters on the keyboard is called the______ row
    14·2 answers
  • The performance of a client-server system is strongly influenced by two major network characteristics: the bandwidth of the netw
    6·1 answer
  • Objects of the calculator class require no additional information when created. define an object named calc, of type calculator.
    14·2 answers
  • If you have two redo log groups with four members each, what’s the optimal number of disks you need to provide appropriate prote
    5·1 answer
  • Suppose we used an Internet Addressing protocol that used 4 bits to encode a single address. How many devices would be supported
    15·1 answer
  • Write a program that receives an character and displays its Unicode. Here is a sample run: Enter an character: E The Unicode for
    8·1 answer
  • Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. T
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!