#include <iostream> using namespace std; int x= 19; int main() { int x = 21; { int x= 41; cout<<::x<<x<<::x<<"\n";
Answers
Answered by
0
Answer:
There are some errors so far i know..
1. You can not declare a variable data type after "using namespace std", but in main or classes...etc...however its answer will be.. 41 as first you have declared 'x' equals 19( don't consider error.. Just suppose that your format is true.. But not really.. Don't panic.. It's a simple mistake ) then you have declared again x equals to 21..and then 41..
In RAM.. If you are changing data values with the same name then the last value which you have given is saved
Answered by
2
Answer:
ans is 194119
Explanation:
beacause :: is called the global variable and simple variable first find for local then global
Similar questions