Variables Storage

Variables should be stored in local blocks. Yes or No?

Showing Answers 1 - 1 of 1 Answers

It depends on what youre trying to do. As a rule, functions should communicate solely through parameters and return values and not use shared state (i.e., global variables). However, sometimes sharing state is unavoidable (often in embedded systems, where you dont have a lot of stack space to play with).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions