Yes, it can be used for any data type. The concept came from way back in the 1600's and 1700's when ships would raise/lower strings of flags to send messages to other ships (ex.: a white flag denotes...
Type: Posts; User: helloworld922
Yes, it can be used for any data type. The concept came from way back in the 1600's and 1700's when ships would raise/lower strings of flags to send messages to other ships (ex.: a white flag denotes...
A flag is basically another word for boolean.
The idea is this:
You can raise a flag, or you can lower it. In it's raised state, the flag is said to be "set", or contains the boolean value...