fundamental C question: what is the syntax and usage of "in"

Discussion in 'Mac Programming' started by Sydde, Jan 11, 2010.

  1. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #1
    I tend to have a fair number of conditionals (mostly if's) that have a lot of &&/|| structures. Is the "in" operator used to replace something like "if ( ( 3 == a )||( ( 5 < a )&&( 8 > a ) ) )", and if so, what is the syntax? I cannot seem to find "in" explained anywhere. I have only learned enough C to write working code, there are a few subtleties I am sure I have missed.
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2

Share This Page