-
What is the output of this program?
#include
using namespace std;
int main()
{
int p = 10, add;
void *ptr = &p;
double q = 2.24;
ptr = &q;
add = p + q;
cout << add << '\n' << ptr;
return 0;
}
-
- 2.24
- 10
- 2.24
10 - 0x7115378f4d48
12 - 12
0x7115378f4d48
Correct Option: E
In this program, we are just adding the two values and printing it.