Search:

Type: Posts; User: shellwoo3

Search: Search took 0.01 seconds.

  1. I get it now! I understood this !i as, since 2 is...

    I get it now! I understood this !i as, since 2 is not = 0 it is true and the second NOT made it false. I was missing how C evaluates it. Thanks for the clarification:)


    Now if I have another...
  2. 1st: Okay I'll remember that... new to system....

    1st: Okay I'll remember that... new to system. But if you post a new question to an old thread, how will it get noticed?

    2nd: I'm still not sure I get this expression: Since !i is true, then with...
  3. Thanks Soma... this too makes sense and it's an...

    Thanks Soma... this too makes sense and it's an easy reference. :o
  4. Okay, thank you very much. This expression was...

    Okay, thank you very much. This expression was killing me, but I get it!!!!
  5. Okay, i think i am getting it. Because ++1 has a...

    Okay, i think i am getting it. Because ++1 has a value greater than zero, there is no need for the expression to increment the value of j or k?
  6. It evaluates the left operand first, then the...

    It evaluates the left operand first, then the right operand. RIGHT?
  7. Is the left operand (++i || ++j)? If so, doesn't...

    Is the left operand (++i || ++j)? If so, doesn't the value of j change because it is incremented before it is evaluated?
  8. New to C programming- Need help understand this logical expressions

    int main()
    {
    int i = 1, j = 1, k = 1;

    printf("%d ", ++i || ++j && ++k);
    printf("%d %d %d ", i, j, k);

    return 0;
    }
Results 1 to 8 of 8