C - Variables and Data Types
Consider this code snippet:
What will be the output and why?
int x = 5;
void change() {
int x = 10;
{
extern int x;
x = 20;
}
}
int main() {
change();
printf("%d", x);
return 0;
}What will be the output and why?
