What is sentinel value in Sentinel Linear Search?
(A)
The middle element
(B)
The second element
(C)
The last element
(D)
None
Answer: (C)
Explanation:
In Sentinel Search, the last element is stored and called sentinel value.
Refer this for more reference: https://www.geeksforgeeks.org/sentinel-linear-search/amp/
Hence Option(C) is the correct answer.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Recommended Articles