Predict the output of the following program.
First call to function set(), sets array = true, array = false and array = false.
Second call to function set(), sets array = true, array = true and array = false.
In function func(),if statement evaluates to be true. So, count = 4.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.