-
What is the output of this program?
#include
using namespace std;
int main()
{
int *ptr;
void *vptr;
if (vptr == ptr)
{
cout << "Interview Mania";
}
return 0;
}
-
- Interview Mania
- Compilation Error
- Runtime Error
- Garbage value
- None of these
Correct Option: A
The void pointer is easily converted to any other type of pointer, so these are equal.