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.
Catholic Sentinel was created in 1870.
Sentinel Returns was created in 1998.
Sentinel Returns happened in 1998.
Raleigh Sentinel was created in 1865.
Raleigh Sentinel ended in 1877.
Rockhurst Sentinel was created in 1914.
The News-Sentinel was created in 1833.