Respuesta :
Answer:
C: 6
Explanation:
The values are separated by ` ,` with this it is enough to count all the numbers that are separated by ` , ` making it have 6 elements
Following are the program to calculate the length of the array:
Program Explanation:
- Defining a header file.
- Defining the main method.
- Defining an integer type array "data" that holds a given value.
- In the next step, a print method is declared that uses the sizeof method that calculates the length of the array.
OR
In the given array all the element is separated by the "," symbol, and when the user counts the array value that is equal to 6.
Program:
#include <iostream>//header file
using namespace std;
int main()//main method
{
int data[] = { 12, 34, 9, 0, -62, 88 };//defining an integer array that hold given value
cout<<sizeof(data)/sizeof(data[0])<<endl;//using print method calculate and print the size of array
return 0;
}
Output:
Please find the attached file.
Therefore, the final answer is "Option c".
Learn more:
brainly.com/question/4506055
