Thread: i'm new to c, can you do this in a for loop?

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    17

    i'm new to c, can you do this in a for loop?

    Code:
    for(k = j; k< i + 2*i && k<length; k++)
    Is it okay to have two conditions for k? k is less than i + 2*i and k is less than length.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,884
    Yes.

Popular pages Recent additions subscribe to a feed