Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int a = 5, b = 10, c = 15;
6.
int arr[3] = {&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[3] = {&a, &b, &c};
7.
cout
Answer: Option D
Was this answer helpful ?
The conversion is invalid in this array. So it will arise error. The following compilation error
will be raised:
cannot convert from 'int *' to 'int'
Was this answer helpful ?
More Questions on This Topic :
Question 6.
What is a array?
....
Submit Solution