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

What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    void mani()
    void mani()
    {
        cout<<"hai";
    }
    int main()
    {
        mani();
        return 0;
    }
A. hai
B. haihai
C. compile time error
D. runtime error
 

Tìm kiếm

Back
Top