A
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;
}
using namespace std;
int main()
{
int *p1;
void *p2;
if (p1 == p2);
cout << "equal";
return 0;
}
- Correct Answer - Option(B)
- Views: 27
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.