logo

Crowdly

Browser

Add to Chrome

Який результат буде у наступного виразу? class A { friend int freu...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Який результат буде у наступного виразу?

class A

{

friend int freund ();

friend class B;

public: int x, y;

private: short i;

} A1;

class B

{public: void func_b (); } b1;

int freund ()

{A1.x = 1; A1.y = 2; A1.i + = 3;

return A1.x + A1.y + A1.i;

}

void B :: func_B () {A1.i = 2; }

int main () {

B1.func_B ();

cout << Freund ();

}

(C++)

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome