subject

Write a function called printstars. the function receives an int parameter . if the parameter is positive, the function prints (to standard output ) the given number of asterisks; otherwise the function does nothing. the function does not return a value . thus, if printstars(8) is called, (8 asterisks) will be printed. the function must not use a loop of any kind (for, while, do-while) to accomplish its job. instead, it gets the job done by examining its parameter , returning if the parameter 's value is not positive. if the parameter is positive, it prints a single asterisk (and no other characters ) then (recursively) calls itself to print the remaining asterisks.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 21.06.2019 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
When is it appropriate to use an absolute reference
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
You know the right answer?
Write a function called printstars. the function receives an int parameter . if the parameter is pos...
Questions
question
Computers and Technology, 11.07.2019 19:50
question
Mathematics, 11.07.2019 20:00
question
Arts, 11.07.2019 20:00
Questions on the website: 13722361