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

What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    int main(void)
    {
        const char *one = "Test";
        cout << one << endl;
        const char *two = one;
        cout << two << endl;
        return 0;
    }
A. Test
B. TestTest
C. Te
D. TestTe
 

Tìm kiếm

Back
Top