Forums Register Login

K & B mock exam question typo

+Pie Number of slices to send: Send


This should be runtime error but in the mock exam it says the answer is Compilation error at line 6.

Is it a typo?
+Pie Number of slices to send: Send
It's actually a runtime exception (not error) because the program tries to access an uninitialized array element. (You're also missing an opening brace at main().)
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 741 times.
Similar Threads
Bonus MasterExam error
Arrays
Question about Master Exam question (array usage)
Question "Declare long arrays" in MasterExam downloadable free with purchase of S&B
K&B Exam - incorrect answer?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:13:59.