Ask Question
15 February, 08:29

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. 15 February, 09:08
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers