BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA Topic 4 Question 19 Discussion

Actual exam question for C++ Institute's CPA exam
Question #: 19
Topic #: 4
[All CPA Questions]

What is the output of the program?

#include

#include

using namespace std;

struct t

{

int tab[2];

};

class First

{

struct t u;

public:

First() {

u.tab[0] = 1;

u.tab[1] = 0;

}

void Print(){

cout << u.tab[0] << " " << u.tab[1];

}

};

int main()

{

First t;

t.Print();

}

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel