In C/C++ language, the subscript of array starts from ______.
Question
In C/C++ language, the subscript of array starts from ______.
Solution
In C/C++ language, the subscript of an array starts from 0.
Similar Questions
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?Question 12Answera.The element will be set to 0.b.None of thesec.The program may crashd.The compiler would report an error.
How is an array initialized in C language?int (a)=[1,2,3];int a[3]={1,2,3};int a[]=new int[3]int a={1,2,3};
Below is an array declaration in 'C' language:int ar1[] = {2,9};int ar2[3] = {9};What will be the output of the following print statement?printf("%d,%d", ar1[1], ar2[2]);(1 Point)
. What are the subscripts for this array? int [ ] k = { 11, 12, 13, 14, 15};
What do you mean by the terms “Dimension” and “Subscript” when we talk about arrays?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.