✅ 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?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!