iSoft Placement: Sample Questions 10 - 10 of 10

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 10

Edit

Appeared in Year: 2004

Write in Short

Short Answer▾

Can external variables be accessed in functions?

Explanation

  • External variables can be accessed in functions.
    • Automatic global variables are defined outside any function block.
    • Automatic local variable are defined inside a function block.
  • Alternative to automatic variables, it is possible to define variables that are external to all functions, that is, variables that can be accessed by name by any function.
  • Globally accessible, external variables can be used instead of argument lists to communicate data between functions.
  • External variables remain in existence permanently, rather than appearing and disappearing as functions are called and exited.
  • They retain their values even after the functions that set them have returned.

Developed by: