Will it throw error or crash if we use the void returning method in a assignment statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Will it throw error or crash if we use the void returning method in a assignment statement?

if it throws error then What kind of error ?

9th Aug 2016, 11:50 AM
Antony Stinil
Antony Stinil - avatar
1 Answer
+ 1
Yes it's you'll get a compiler error. Can't remember what error it was. Go to VS write this code and see what will happen. That's the best way to learn. By experiencing.
10th Aug 2016, 7:35 AM
Alireza M
Alireza M - avatar