• why a pointer to struct cause a sytax err:(
    gentlemen,thing is as following: in Cmnd.c file, a struct is defined: typedef struct { unsigned char arg1; unsigned char arg2; unsigned char arg3; unsigned int arg4; unsigned int arg5; }para;...
  • why a pointer to struct cause a sytax err:(
    gentlemen,thing is as following: in Cmnd.c file, a struct is defined: typedef struct { unsigned char arg1; unsigned char arg2; unsigned char arg3; unsigned int arg4; unsigned int arg5; }para;...
  • why the VTREG(Px) doesn't change responding to the relative register?
    hello with the Keil uVISION2 51 simulation,sometimes,the register has been set,but the relative VTREG doesn't get to change .for example,in my programme,some positions of register P1 has been set 1,but...
  • why the VTREG(Px) doesn't change responding to the relative register?
    hello with the Keil uVISION2 51 simulation,sometimes,the register has been set,but the relative VTREG doesn't get to change .for example,in my programme,some positions of register P1 has been set 1,but...
  • void pointer to struct pointer cast
    I declared a void pointer void *ptr; and a typedef struct named testStructure, with a member 'unsigned int a'. Now I will cast this pointer to a struct pointer: ptr=(testStructure*)malloc...