125k views
1 vote
When would a one way flag variable be used

User Neil W
by
7.7k points

1 Answer

3 votes
A one-way flag can also be used, for example, to watch errors occuring in input data so that the program could ask the inputs again. A variable is a temporary if its value is always needed only for a very short period.
User Ndfred
by
7.7k points