Study

Grade 10(Array)

  •   0%
  •  0     0     0

  • find error - int a = new int [5]
  • a[ ] = {1,2,3,4,5,6,7,8,9} what is a.length
    9
  • find error - int a = new int [5]
  • Give example of Direction initialization of an Array
  • find value of x - int n= {1,4,7,9,8} ; x = Math.pow(n[0],n[4])
    1
  • find error - int a[ ] = new int (5)
  • State the total size in bytes of the array a[4] of int datatype.
    16 bytes
  • Give output - int m[ ] = {2,4,6,8}; m[1] + m[3]
    12