logo

Crowdly

4. Testați următorul cod în editorul de cod și răspundeți la întrebări: C...

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

4. Testați următorul cod în editorul de cod și răspundeți la întrebări:

#include <iostream>

using namespace std;

int x = 5;

void functie() {

    int x = 10;

    cout << "x in functie: " << x << endl;

}

int main() {

    cout << "x global inainte de apel: " << x << endl;

    functie();

    cout << "x global dupa apel: " << x << endl;

    return 0;

}

Ce va afișa următorul program? De ce?  

More questions like this

Want instant access to all verified answers on moodle1.ceiti.md?

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