Question
What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int *arr[ ] = {&a, &b, &c};
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 5. What is size of generic pointer in c? ....
Question 9. What we can't do on a void pointer? ....
Submit Solution