Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,213

    Re: how does this work?

    % is the modulus/remainder operator.
    To see how it works, write a small program with a loop and print out the values of the loop index when you use that operator. Something like this:
    int var =...
  2. Replies
    3
    Views
    1,213

    Re: how does this work?

    Please explain what you mean by "work".
    Does the code compile and execute?
    What is printed out when the code is executed?

    Most of the code is very simple.
    What line(s) of the code are a...
Results 1 to 2 of 2