Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int main()
{
int *p1;
void *p2;
if (p1 == p2);
cout << "equal";
return 0;
}
β
Correct Answer: (B)
equal