Search:

Type: Posts; User: willc86

Search: Search took 0.22 seconds.

  1. Replies
    10
    Views
    1,273

    Re: question about arrays; something simple

    well, when I printed it, it gave me the right answer I was looking for lol. It found the largest number I was looking for.
    Do you guys know a good website with actual problems to practice? Like...
  2. Replies
    10
    Views
    1,273

    Re: question about arrays; something simple

    yeah thats what I meant lol. I just wrote it quick without more details, but thats what I meant; that C[0] is ini. maxC to whatever the first element is in the array such as

    int []A = {1,2,3,4,5};...
  3. Replies
    10
    Views
    1,273

    Re: question about arrays; something simple

    so, int maxC = C[0] is initializing the first element in the array?
  4. Replies
    10
    Views
    1,273

    Re: question about arrays; something simple

    ok I'll read that. if I have any questions ill let you know.
  5. Replies
    10
    Views
    1,273

    question about arrays; something simple

    I am just curious what does int maxC = C[0]; mean. Why do I put C[0]; instead of int maxC = 0;

    heres the code

    public static void main...........

    int []C = {2,4,543,2};
    int maxC =...
Results 1 to 5 of 5