-
What is the output of this program?
#include
using namespace std;
int main()
{
int k;
char *array[] = {"Red", "Blue", "Green", "Yellow"};
char *(*p)[4] = &array;
cout << ++(*p)[2];
return 0;
}
-
- Red
- Blue
- Green
- Yellow
- reen
Correct Option: E
In this program we are moving the pointer from first position to second position and printing the remaining value.