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

method to avoid global variables

I want to know method, How to avoid global variable in c microcontroller programing? or method to make global variable invisible.
Is there any perticular functions in built in c library?, that could be supportive to avoid global variables or hide global variables.

Parents
  • "Who said anything about not using any global variables?
    the OP"

    No he didn't:

    "I want to know method, How to avoid global variable in c microcontroller programing? or method to make global variable invisible.
    Is there any perticular functions in built in c library?, that could be supportive to avoid global variables or hide global variables."

    I don't see the words 'all' or the phrase 'not using any' in there.

Reply
  • "Who said anything about not using any global variables?
    the OP"

    No he didn't:

    "I want to know method, How to avoid global variable in c microcontroller programing? or method to make global variable invisible.
    Is there any perticular functions in built in c library?, that could be supportive to avoid global variables or hide global variables."

    I don't see the words 'all' or the phrase 'not using any' in there.

Children