logo

Crowdly

Browser

Add to Chrome

Se consideră următoarea secvență de program: class Cls1{ static int s; publ...

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

Se consideră următoarea secvență de program:

class Cls1{

static int s;

public:

S() { v = 0;}

int gets() {return s;}

int getv() {return v;}

void incs() {s++;}

void incv() {v++;}

};

int Cls1::s;

int main (){

Cls1 x, y;

x.incs(); x.incs();

cout <<"y.s: "<<y.gets()<<endl;

}

După executarea secvenței de program, la consolă se va afișa valoarea

0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on else.fcim.utm.md?

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

Browser

Add to Chrome