Chen Yu plastic
int a,b; //global variables a, b

Void fun ()

{a= 100, b = 200}// Local variables A and B will not affect A and B in MAIN, but only change global variables A and B..

Master ()

{int a=5,b = 7; //local variables a, b

Fun ()

printf("%d%d\n ",a,b); //local variables a and b, mask global variables a and b.

}int a,b; //global variables a, b

Void fun ()

{a= 100, b = 200}// Local variables A and B will not affect A and B in MAIN, but only change global variables A and B..

Master ()

{int a=5,b = 7; //local variables a, b

Fun ()

printf("%d%d\n ",a,b); //local variables a and b, mask global variables a and b.

}int a,b; //global variables a, b

Void fun ()

{a= 100, b = 200}// Local variables A and B will not affect A and B in MAIN, but only change global variables A and B..

Master ()

{int a=5,b = 7; //local variables a, b

Fun ()

printf("%d%d\n ",a,b); //local variables a and b, mask global variables a and b.

}int a,b; //global variables a, b

Void fun ()

{a= 100, b = 200}// Local variables A and B will not affect A and B in MAIN, but only change global variables A and B..

Master ()

{int a=5,b = 7; //local variables a, b

Fun ()

printf("%d%d\n ",a,b); //local variables a and b, mask global variables a and b.

}

Answer:

You defined int a and b from the beginning;

This A and B play a role in your whole document.

However, you defined a and b in the main function;

Then all A and B you use in the main function are locally defined A and B, because the global variables A and B are blocked in the main function.

You can change it like this, and you will understand:

# include & ltstdio.h & gt

int a,b;

Void fun ()

{a= 100,b = 200

Printf ("global variables A and B are:% d,% d \ n", A and B respectively);

}

Master ()

{int a=5,b = 7;

Fun ()

Printf (local variables A and B defined in "Main function is:% d,% d \ n", which are A and B respectively);

}

Knowing that the rain is silent, the answer is:

You defined int a and b from the beginning;

This A and B play a role in your whole document.

However, you defined a and b in the main function;

Then all A and B you use in the main function are locally defined A and B, because the global variables A and B are blocked in the main function.

You can change it like this, and you will understand:

# include & ltstdio.h & gt

int a,b;

Void fun ()

{a= 100,b = 200

Printf ("global variables A and B are:% d,% d \ n", A and B respectively);

}

Master ()

{int a=5,b = 7;

Fun ()

Printf (local variables A and B defined in "Main function is:% d,% d \ n", which are A and B respectively);

}

Knowing that the rain is silent, the answer is:

You defined int a and b from the beginning;

This A and B play a role in your whole document.

However, you defined a and b in the main function;

Then all A and B you use in the main function are locally defined A and B, because the global variables A and B are blocked in the main function.

You can change it like this, and you will understand:

# include & ltstdio.h & gt

int a,b;

Void fun ()

{a= 100,b = 200

Printf ("global variables A and B are:% d,% d \ n", A and B respectively);

}

Master ()

{int a=5,b = 7;

Fun ()

Printf (local variables A and B defined in "Main function is:% d,% d \ n", which are A and B respectively);

}

Knowing that the rain is silent, the answer is:

You defined int a and b from the beginning;

This A and B play a role in your whole document.

However, you defined a and b in the main function;

Then all A and B you use in the main function are locally defined A and B, because the global variables A and B are blocked in the main function.

You can change it like this, and you will understand:

# include & ltstdio.h & gt

int a,b;

Void fun ()

{a= 100,b = 200

Printf ("global variables A and B are:% d,% d \ n", A and B respectively);

}

Master ()

{int a=5,b = 7;

Fun ()

Printf (local variables A and B defined in "Main function is:% d,% d \ n", which are A and B respectively);

}

Knowing that the rain is silent, the answer is:

You defined int a and b from the beginning;

This A and B play a role in your whole document.

However, you defined a and b in the main function;

Then all A and B you use in the main function are locally defined A and B, because the global variables A and B are blocked in the main function.

You can change it like this, and you will understand:

# include & ltstdio.h & gt

int a,b;

Void fun ()

{a= 100,b = 200

Printf ("global variables A and B are:% d,% d \ n", A and B respectively);

}

Master ()

{int a=5,b = 7;

Fun ()

Printf (local variables A and B defined in "Main function is:% d,% d \ n", which are A and B respectively);

}

Knowing that the rain is silent, the answer is:

You defined int a and b from the beginning;

This A and B play a role in your whole document.

However, you defined a and b in the main function;

Then all A and B you use in the main function are locally defined A and B, because the global variables A and B are blocked in the main function.

You can change it like this, and you will understand:

# include & ltstdio.h & gt

int a,b;

Void fun ()

{a= 100,b = 200

Printf ("global variables A and B are:% d,% d \ n", A and B respectively);

}

Master ()

{int a=5,b = 7;

Fun ()

Printf (local variables A and B defined in "Main function is:% d,% d \ n", which are A and B respectively);

}

Know the rain and silence