Ask Question
19 February, 13:02

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?

+1
Answers (1)
  1. 19 February, 13:27
    0
    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;
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “In the C+ + instruction, cookies = number % children; given the following declaration statement: int number = 38, children = 4, cookies; ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers