Global and local variable inside function
#include <stdio.h> int count; /* global count */ void f(void) { int count; /* local count */ count = 100; printf("count in f() : %d\n", count); } int main(void) { count = 10; f(); printf("count in main(): %d\n", count); return 0; }