Asked by Anupam Rajput on Sep 27, 2024

When choosing a sentinel value,you should choose a value that would never be encountered in the input of the program.

Sentinel Value

A specific value in the context of algorithm or program which is used to indicate the end of data input or processing.

  • Comprehend the concept and significance of selecting appropriate sentinel values in loop control.