Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
199 views
in Information Technology by (121k points)
closed by
: It is not possible to reach the end of an array if starting element of the array is 0.

(a) true

(b) false

My question is taken from Number of Jumps to Reach End-array Operation topic in division Arrays Types of Data Structures & Algorithms I

This question was posed to me by my college professor while I was bunking the class.

1 Answer

0 votes
by (121k points)
selected by
 
Best 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.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...