CPArrys Q6

0. Size of the array need not be specified, when

  • Option : A
  • Explanation :
    Consider the following declaration
    double balance[] = {1000.0, 2.0, 3.4, 17.0, 50.0};
    If you omit the size of the array, an array just big enough to hold the initialization is created.
    So, correct option is 'A'.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *