• Problem with structs as return values
    I am using functions, which returns structs. This shouldn't be a problem in C. And it works mostly. But are there contexts where this is not allowed? Maybe there a conflicts because those structs...
  • Problem with structs as return values
    I am using functions, which returns structs. This shouldn't be a problem in C. And it works mostly. But are there contexts where this is not allowed? Maybe there a conflicts because those structs...
  • Function returning a struct
    Hi, How come the 51 compiler V7.04 cannot compile the following code? typedef struct { int i; } S; S jj(void) { S k; return(k); } S i(void) { return(jj()); } void main(void...
  • Function returning a struct
    Hi, How come the 51 compiler V7.04 cannot compile the following code? typedef struct { int i; } S; S jj(void) { S k; return(k); } S i(void) { return(jj()); } void main(void...
  • local variables not showing correct value
    Hi, Am I doing something wrong? The local variable below called 'test_byte' is used to hold return values from function 'ser_buff_read_byte ()'. The value returned is always 0x1D both in the watch...