Why is it not necessary to return a variable from a function if the variable is
ID: 3822186 • Letter: W
Question
Why is it not necessary to return a variable from a function if the variable is declared as global? You have to return all variables regardless of scope. All functions can see and access global variables. main() gets copies of global variables. Each function gets its own copy of global variables. (TCO 6) Debugging is like being a(n)|______. accountant attorney detective police officer (TCO 5) Float and double variables should not be used______. as counters to perform mathematical calculations as approximate representations of decimal numbers for applications when precision is required (TCO 5) The most difficult aspect of working with___ loops is keeping track of the separate loop control variables that direct the program's execution. nested controlled-counter outer counter-controlledExplanation / Answer
2. Why is it not necessary to return a variable from a function if the variable is
declared as global.
All functions can see and access global variables. As the name it self suggests, its
available global.
3. Debugging is like being _____.
Detective. It will just detect the bugs.
4. float and double variables should not be used ___.
as counters. (Usually counting will be as whole numbers, i.e., integers).
5. The most difficult aspect of working with ___ loops is keeping track of the separate
loop control variables that direct the program's execution.
sentinel controlled or counter-controlled loops.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.