Question:

What is the output of this program?

    #include <iostream>
    using namespace std;
    int main()
    {
        int i;
        char c;
        void *data;
        i = 2;
        c = 'd';
        data = &i;
        cout << "the data points to the integer value" << data;
        data = &c;
        cout << "the data now points to the character" << data;
        return 0;
    }

 

Answers:


Keywords:

© 2017 QuizBucket.org