Reference

{“https:\/\/www.jdoodle.com\/a\/9Un?format=text”:”#include <iostream>\nusing namespace std;\n\nint number = 10;\nint& numberRef = number;\n\nvoid print() {\n cout << "Hodnota z prom\u011bnn\u00e9 number je " << number << endl;\n cout << "Hodnota z\u00edskan\u00e1 z reference je " << numberRef << endl;\n cout << endl;\n}\n\nint main() {\n print();\n number = 5;\n print();\n numberRef = 1;\n print();\n return 0;\n}”}


Reference
Ohodnoťte tento článek