This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Link List

xdata struct EEPROM {

unsigned int Last_Data; struct EEPROM *Node; };

struct EEPROM xdata * xdata p; p = (struct EEPROM xdata *)0x0FF6;
if i will print the following statement
printf("Size of p = %d",(unsigned int)sizeof(*p));

then it will shows the 5,but actually it should show the 4 bytes

Parents
  • Did you even bother to absorb (if you have that ability) "Just mentally go through the process of getting to the last entry in a linked list as opposed to getting to the last entry in an array of pointers. Point taken?"

    No, I didn't bother. Previous attempts to have technical discussion with you have been fruitless because you inevitably try, as Jason has discovered below, to twist the subject round once you realise your position is untenable.

    I happen to be of the opposite opinion

    Please keep your opinions to yourself. Stick to facts.

Reply
  • Did you even bother to absorb (if you have that ability) "Just mentally go through the process of getting to the last entry in a linked list as opposed to getting to the last entry in an array of pointers. Point taken?"

    No, I didn't bother. Previous attempts to have technical discussion with you have been fruitless because you inevitably try, as Jason has discovered below, to twist the subject round once you realise your position is untenable.

    I happen to be of the opposite opinion

    Please keep your opinions to yourself. Stick to facts.

Children