a) array[6];
b) array[7];
c) array(7);
d) array;
Answer: a
Explanation: The array location starts from zero, So it can accessed by array[6].
Related Posts
A void pointer cannot point to which of these?
The pointer can point to any variable that is not declared with which of these?
When does the void pointer can be dereferenced?
The void pointer can point to which type of objects?
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
void func(const int &a)
{
int temp = 10;
a = temp;
cout<< a;
}
int main(int argc, char const *argv[])
{
int a = 5;
func(a);
return 0;
}Which of the following operator is used while declaring references?
Pick the correct statement about references.
Join The Discussion