What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int *p;
void *vp;
if (vp == p)
cout << "equal";
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int *p;
void *vp;
if (vp == p)
cout << "equal";
return 0;
}A. equal
B. no output
C. compile error
D. runtime error
Answer: Option A

Join The Discussion