logo

Crowdly

Browser

Add to Chrome

struct Semaphor { const long power_on: 1; long red: 1; long yellow: 1;...

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

struct Semaphor

{ const long power_on: 1;

long red: 1;

long yellow: 1;

long green: 1;

static long is_new_version: 1;

};

int main ()

{

Semaphor my_semaphor = {1};

bool is_red = my_semaphor.red;

long * pyellow = & (my_semaphor.yellow);

bool power_on = my_semaphor.power_on;

int new_version = my_semaphor.is_new_version;

return 0;

}

Які присвоєння бітових полів коректні (і відповідно опису цих полів) файлі sample.cpp?

(C++)

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