As an alternative by Jasjit Singh Rayat:
#include <stdio.h>
void report(); // i say in this line : I will create this function in the future TRUST ME! :)
int count;
void p() {
count = 100;
report();
}
int p2(){
count = 200;
report();
}
void report(){
printf("%d",count);
}
int main()
{
count = 300;
p();
p2();
report();
return 0;
}