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

c program

hello;
i want to know that where we use link list, function pointer, generic pointer in embedded programming

Parents
  • My faviourite (not!) is state machines where the states has not been given names. Each case just has a number, and within it the code may have a line:

    state = 17;
    

    Almost impossible to know what state 17 means, and almost impossible to insert a new state without missing to renumber all state changes.

Reply
  • My faviourite (not!) is state machines where the states has not been given names. Each case just has a number, and within it the code may have a line:

    state = 17;
    

    Almost impossible to know what state 17 means, and almost impossible to insert a new state without missing to renumber all state changes.

Children
  • My faviourite (not!) is state machines where the states has not been given names.

    Ohhh, I think you forgot that for complete "enjoyment", all of the states are actually "documented" in a separate document, which is "slightly" out of date with the actual code. :)

    (It's somewhere in the Writing-Unmaintainable-Code Howto: "Lie in the comments/documentation. It doesn't need to be obvious, just fail to keep the comments/documentation up to date with the code.")