A sentinel-controlled repetition is a loop structure where the continuation of the loop is determined by a special condition called a sentinel value. When the sentinel value is encountered, it signals the end of the loop. This allows the loop to run until a specific condition is met, rather than for a predetermined number of iterations.
In a Sentinel-Controlled loop, a special value called a sentinel value is used to change the loop control expression from true to false.For example,when reading data we may indicate the "end of data" by a special value,like -1 and 999.The control variable is called sentinel variable.A sentinel-Controlled loop is often called indefinite repetition loop because the number of repetitions is not known before the loop begins executing.
when is a counter controlled structure is preferable
sentinel
The address of the Sentinel Public Library is: 210 E. Main, Sentinel, 73664 3664
The sentinel watched as I passed by.
Rockhurst Sentinel was created in 1914.
The Wayne Sentinel was created in 1823.
Gundam Sentinel was created in 1987.
Catholic Sentinel was created in 1870.
The News-Sentinel was created in 1833.
Raytheon Sentinel was created in 2008.
Sentinel - comics - was created in 1965.