Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Promoted
I'm a beginner in C++ and have a doubt in the term 'flag'. In some programs flag is set to 0 and 1.?
When is flag==0 and flag==1?
Thanks for the answer.
BA to be awarded
1 Answer
Relevance
- QuentinLv 75 years agoFavorite Answer
flag == 0 for false
flag == 1 for true
There is a Boolean type so you can make
bool flag = false;
flag = true;
which is clearer.
Still have questions? Get your answers by asking now.