1.

: It is not possible to reach the end of an array if starting element of the array is 0.(a) true(b) falseMy question is taken from Number of Jumps to Reach End-array Operation topic in division Arrays Types of Data Structures & Algorithms IThis question was posed to me by my college professor while I was bunking the class.

Answer»

Right option is (a) true

The best EXPLANATION: If the first element of an array is 0 then it is not POSSIBLE to reach the END. HOWEVER, if 0 is present at other POSITIONS then we may/may not be able to reach the end.



Discussion

No Comment Found

Related InterviewSolutions