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.
Sentinel - comics - was created in 1965.
The Sentinel - album - was created in 1984.
The Sentinel was released on 04/21/2006.
The Production Budget for The Sentinel was $60,000,000.
Orlando Sentinel was created in 1876.
The Wayne Sentinel was created in 1823.
Gundam Sentinel was created in 1987.