What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() {

Khang Lê

New member
What will be the output of the following C++ code?
Code:
    #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
 

Tìm kiếm

Back
Top