What will be the output of the following code ?
int arr[100];
cout << arr[0];
Answer : Garbage Value
Which of the following correctly declares an array of size 10 ?
int array[10];
int array;
array{10};
array array[10];
Answer : Click Here
What is the index number of the last element of an array with 5 elements ?
Answer : Click Here
Which of the following accesses the third element stored in array?
array[3]
array[2]
array(3)
array
Answer : Click Here

0 Comments