Misleading question in the 2nd quiz

On the 7th question the question is:

How might you DECLARE a function that finds the square root of a whole number:

There are 2 answers both exactly the same except one has no return value and is void, the other is not void and expects a return value, technically both functions are correct answers but only the function including the void modifier is acceptable.

Just thought i should point this out since the question does not define if the value should be returned or not.

Privacy & Terms