a) 9
b) 8
c) 0
d) Programmer-defined
Answer: b
Explanation: Because the first element always starts at 0. So it is on 8 position.
Related Posts
Which of the following gives the memory address of the first element in array?
Which of the following accesses the seventh element stored in array?
What is the correct definition of an array?
Which of the following correctly declares an array?
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
char *ptr;
char Str[] = “abcdefg”;
ptr = Str;
ptr += 5;
cout << ptr;
return 0;
}What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
char arr[20];
int i;
for(i = 0; i < 10; i++)
*(arr + i) = 65 + i;
*(arr + i) = ‘\0’;
cout << arr;
return(0);
}The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is ____________
Join The Discussion