-- advertisement --

Arrays

  1. Which of the following statements are correct about 4 used in the following C expressions?
    int num[4] ;
    num[4] = 23 ;
    1. In the first statement 4 specifies a particular element, whereas in the second statement it specifies a type.
    2. In the first statement 4 specifies the array size, whereas in the second statement it specifies a particular element of the array.
    3. In the first statement 4 specifies a particular element, whereas in the second statement it specifies the array size.
    4. In both the statement 4 specifies array size.
    5. In the first statement 4 specifies array size, whereas in the second statement it specifies that the array size be increased from 4 to 23.
  1. View Hint | View Answer | Workspace | Discuss In Forum | Report

    In the first statement 4 specifies the array size.

    Correct Option: B

    In the first statement 4 specifies the array size, whereas in the second statement it specifies a particular element of the array.

    Report

-- advertisement --