Home » C++ Programming » Data Structures » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    struct second
    {
    int p;
    char q;
    };
    int main()
    {
    struct second sec ={30,210};
    struct second *ps =(struct second *)&sec;
    cout << ps->p <<" "<< ps->q;
    return 0;
    }
    1. 303
    2. 304
    3. F 30
    4. 03 F
    5. 30 F
Correct Option: E

30 F



Your comments will be displayed only after manual approval.