• Initializing an array
    I tried to initialize this array but it shows the error as- expression must be a modifiable lvalue. struct sur { int n[10]; }s; s.n={1,2,3};
  • Array initialization in ext memory
    Hi! i have use p89c669 microcontroller and am29f040b [512 kb] flash.When i using the external code memory i can't initialize the array that have more than 4 values.if i initialize more than that the...
  • Array initialization in c8051F320
    I'm trying to fill an array in xdata with zeros as follows: unsigned char n; //Index to scan the array unsigned char xdata bt[100]; //The array to fill for(n=0;n<100;n++){ bt[n]=0; } But...
  • Initializing array of structs
    Hello, I have an array of structs, which I would like to initialize at startup, but to my surprise this gives me a compiler syntax error: I do as follows: typedef volatile struct Timer {...
  • Array with Fully-Bracketed Initializers
    Following on from this discussion: http://www.8052.com/forum/read.phtml?id=84814 Keil C51 v7.50 rejects the following: char key_tbl[][] = { { 4, 3, 2, 1 }, // row 0 { 8, 7, 6, 5 }, // row 1 ...