मराठी

Some of the code given below contains errors. Identify the error and correct it. Write the output of the correct/corrected code. int DL[ ] = new int [5]; int n = 5; for(int j = 0; j<=n; j++)

Advertisements
Advertisements

प्रश्न

Some of the code given below contains errors. Identify the error and correct it. Write the output of the correct/corrected code.

int DL[ ] = new int [5];
int n = 5;
for(int j = 0; j<=n; j++)
    System.out.print(" " + DL[j]);
कोड लेखन
Advertisements

उत्तर

int DL[] = new int[5];
int n = 5;
for (int j = 0; j < n;j++) 
{
    System.out.print(" " + DL[j]);
}
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Arrays - One Dimension - Exercises [पृष्ठ १७६]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 7 Arrays - One Dimension
Exercises | Q 3. (xii) | पृष्ठ १७६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×