468,512 Members | 1,445 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

what is flags in c

5
hi
i ned to know wat is flags in programing language and wer we need to use it
Oct 6 '06 #1
2 4002
Banfa
9,056 Expert Mod 8TB
This question does not make any sense.

Programmers often use flags as a variable name where they are using the individual bits of the variable to represent different things.
Oct 6 '06 #2
plabo
3
Usually flags are used to tell you if you entered in some parts of your code.

If (Var>1)
Flag=1;
else
Flag=2;

with this little example, you can understand much easier. Hope you understand
Oct 6 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by loquak | last post: by
13 posts views Thread by Mark A. Odell | last post: by
3 posts views Thread by Ignacio X. Domínguez | last post: by
1 post views Thread by todorov-fkt | last post: by
1 post views Thread by RicercatoreSbadato | last post: by
4 posts views Thread by Joel Moore | last post: by
1 post views Thread by Alexander Korsunsky | last post: by
reply views Thread by jesse.k.rosenthal | last post: by
9 posts views Thread by kid joe | last post: by
20 posts views Thread by Plissken.s | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.