Search:

Type: Posts; User: nicomp

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,898

    5275: Told ya!

    5275: Told ya!
  2. Replies
    9
    Views
    1,898

    I don't understand. If the first thing that...

    I don't understand. If the first thing that happens is the sum of a with c then a+c should be 12. Instead, a+c is giving 13 which implies that c has been incremented already.

    What am I missing?
  3. Replies
    9
    Views
    1,898

    Order of operations question

    :rolleyes:



    #include <stdio.h>
    void main()
    {
    float a = 4, b = 4, c = 8;
    a = (a + c) / ++c;
    printf("\n a = %f", a);
Results 1 to 3 of 3