Question:

What is the output of this program?

    #include <iostream>
    using namespace std;
    struct sec {
        int a;
        char b;
    };
    int main()
    {
        struct sec s ={25,50};
        struct sec *ps =(struct sec *)&s;
        cout << ps->a << ps->b;
        return 0;
    }

 

Answers:


Keywords:

© 2017 QuizBucket.org