• Design question about global variable
    Hello Normall in an application we define global variable as: int a; int b; ... How about use one structure to include all variables, and just define one structure instance? as below: struct...
  • Global variable
    In my project I am using four source code files. There is one variable, which is used in all four files. When I declared this variable in one file and compiled the file, the compilation was successful...
  • Global Variable.
    In my project I have two files. as follows File A int x; main() { x=2; } File B extern int x; { x=4; } When I compile both files independatly, there is no error. When I link both modules...
  • DESIGN A CODE IN EMBEDDED C
    I want do design the PREPAID ENERGY METER by using [ARM 7 NXP LPC2378 IN SLAVE mode using EMBEDDED C]with the CAN protocol
  • Global Variables
    I have had a hard time creating a global variable. In other C progams, all I have to do is just declare it above the Main() function. I am using Dave and the Keil evaluation compiler. I am trying to creat...