what is flags in c

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raghup
    New Member
    • Oct 2006
    • 5

    what is flags in c

    hi
    i ned to know wat is flags in programing language and wer we need to use it
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    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.

    Comment

    • plabo
      New Member
      • Oct 2006
      • 3

      #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

      Comment

      Working...