Search:

Type: Posts; User: Abadude

Search: Search took 0.08 seconds.

  1. Re: Help understanding the result of a type int variable

    which is the ternary operator?
    can you explain what the "?" and ":" do?
  2. Help understanding the result of a type int variable

    Can anyone tell me what the "?" and ":" mean in the following statement?

    int y = (x < 100) ? (z > 1 ) ? 4 : 3 : 2;
Results 1 to 2 of 2