Which of the following is the correct way to declare a multidimensional array in Java?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
LB are UB are lower bound and upper bound of a linear array LA. Consider following algorithm -
The algorithm ______ the array LA.
What is the output of the following Java code?
public class array
{
public static void main(String args[])
{
int []arr = {1,2,3,4,5};
System.out.println(arr[5]);
}
}
Consider the following array declaration in ‘C’ language:
int array[] = {2, 3, 4, 5};
What will be the output of the following statement?
printf("%d", array[2]);
Consider the following declaration of an array in ‘C’ language:
int A[6] = {1, 2, 3, 5};
Which of the following statements is true?
Find the number of elements in the following array.
char si [] = "India is great";
119 docs|30 tests
|
119 docs|30 tests
|