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 person {

char name[20], surname[20];

int age;

} one = { "Ivan", "Ivanchenko", 50 }, *second = &one;

void main()

{

strcpy_s(one.surname,sizeof(one.surname), "Petrenko");

cout << second->name << "\t";

cout << second->surname << "\t";

cout << second->age << "\n";

}

0%
0%
0%
0%
0%
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