Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 5, b = 10, c = 15;
6.
int *arr[ ] = {&a, &b, &c};
7.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 5, b = 10, c = 15;
6.
int *arr[ ] = {&a, &b, &c};
7.
cout
Answer: Option D
Was this answer helpful ?
Array element cannot be address of auto variable. It can be address of static or extern variables.
Was this answer helpful ?
More Questions on This Topic :
Question 2.
Which of the following is illegal?
....
Question 3.
Choose the right option string* x, y;
....
Submit Solution