✅ 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";
}