haleygrobertson3828 haleygrobertson3828
  • 11-09-2019
  • Computers and Technology
contestada

In the C++ instruction, cookies = number % children; given the following declaration statement: int number = 38, children = 4, cookies; what is the value of cookies after the execution of the statement?

Respuesta :

StaceeLichtenstein StaceeLichtenstein
  • 13-09-2019

Answer:

The correct answer for the given question is "2"

Explanation:

Here the statement is  cookies = number % children; where  number and children are the integer type variable which has been initialized by 38 and 4  respectively as given in the question.  

It will give value of cookies=2 because the % operator gives reminder so 38%4 gives reminder 2 .  

Therefore the value of cookies=2;

Answer Link

Otras preguntas

Convert each of these statements into a question using inversion. Begin with a capital letter and end with a question mark. Vous aimez les croissants.
How did the Aryans and Indians justify the use of the caste system? Write a short essay. I will give a brainlist point!
Please help me give 5 stars bro
Solve for x please thanks
diagram of a dividing cell of an organism which has a diploid chromosome number of 4
i can not seem to figure out this problem. help!!
What kind of creature is this?​
Q2 computer. a) b) What is computer? State and explain the types of What is computer hardware c) Define computer software and list the categories of c d) c) Wha
How does the hard corals make their skeleton from seawater?
solve for x ~[tex]6x - 36 = 12[/tex]thankyou ~​