Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.
Sagot :
Answer:
(a) void
(b) Nothing happens
Explanation:
Solving (a): void and return
A function that returns no value is referred to as a void function.
On the other hand, a void can not be return or named return.
So, the function is void
Solving (b):
r = 3
Required
The result of r%2 == 0
Substitute 3 for r in r%2 == 0
3%2 == 0
3%2 is 1.
So, we have:
1 == 0
Hence, the equivalent of r%2 == 0 is 1 == 0.
However, nothing will happen because there is no instruction attached to the statement (i.e. r%2 == 0;)
We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. Your questions are important to us at Westonci.ca. Visit again for expert answers and reliable information.