Search:

Type: Posts; User: Abhilash

Search: Search took 0.09 seconds.

  1. Replies
    12
    Views
    1,133

    Re: I dont understand this code ?

    Well, good for you then.
  2. Replies
    12
    Views
    1,133

    Re: I dont understand this code ?

    Actually, by garbage value I means the array does no store anything for now (i.e. it hasn't been initialized in the program). Although java initializes it automatically, but this method shouldn't be...
  3. Replies
    12
    Views
    1,133

    Re: I dont understand this code ?

    Because Your array stores "garbage value" for now. You haven't initialized it with numbers, you have just declared it. So it prints 0 as default.
  4. Replies
    12
    Views
    1,133

    Re: I dont understand this code ?

    String args[], not a[]. You are not initializing an array within the parameters.

    Moreover, your array r is uninitialized. Initialize it with numbers before printing it.
Results 1 to 4 of 4