• Static Variables
    Hi everyone, I would like to know if something similar happen to you. Well the issue is that when I declare a variable as a global one in the header file of a module with extern sometimes it loses...
  • Problem with static variable in the functions.
    Hi all. The source C file is... ============================= void a(void) { static unsigned char var1; ... switch(var1){ ... } } ============================== and the error message...
  • Problem with static variable in the functions.
    Hi all. The source C file is... ============================= void a(void) { static unsigned char var1; ... switch(var1){ ... } } ============================== and the error message...
  • When declare a variable to be static?
    Can someone give some explains on when to declare a variable to be static? What is the difference with extern one?
  • problem in initilise static variable
    Hi, I am using c51 keil compiler with cygnal chip c8051C020. I find problem in initilise static variable. exp. main() { static unsigned char i =0 ; i++; } when i write this type of code...