What does int flag = 1 or flag = 0 means in C++ language? I have seen it in many programs but I don't know its use.
ArpitJ.25
0
Newbie Poster
Recommended Answers
Jump to PostIt just means you are declaring a variable called flag and giving it a value of 1 or 0. This will presumably be used elsewhere in the code to keep a track of the state of something. It is also probably boolean in nature.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.