logo

Crowdly

Browser

Add to Chrome

Чи працюватиме код поданий далі? Якщо так, то який результат його виконання? #i...

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

Чи працюватиме код поданий далі? Якщо так, то який результат його виконання?

#include <iostream>

using namespace std;

struct P

{

int a;

double b;

};

void fill(P* obj){

obj = new P;

obj->a = 10;

obj->b = 3.44;

}

void main(){

P* o;

fill(o);

cout << o->a << "\t" << o->b << "\n";

}

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome