C - Variables and Data Types
Consider the following C code:
What is the output when this program runs?
int x = 1;
void outer() {
int x = 2;
{
int x = 3;
printf("%d ", x);
}
printf("%d ", x);
}
int main() {
outer();
printf("%d", x);
return 0;
}What is the output when this program runs?
