English

What will this code print? int arr[] = new int[5]; System.out.println(arr); - Computer Applications

Advertisements
Advertisements

Question

What will this code print?

int arr[] = new int[5];
System.out.println(arr);

Options

  • 0

  • value stored in arr[0]

  • 0000

  • Garbage value

MCQ

Solution

Garbage value

shaalaa.com
String Array
  Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - Review Insight [Page 237]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
Review Insight | Q 11. | Page 237
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×