Question
What do you understand by an automatic variable? How does it differ from a static variable? Explain.
Answer :
Word Count : 358
___ _______ ___ ______ ________ ______ _____.
_______ ______ ________ ______ _______ _________ _________.
______ _________ ________ __________ ____ ____ __________ ____ _______ __________ _____ ____.
________ ______ ______ __________ _______ _________ _______ ___ ______.
_______ ______ ______ ________ __________ _______ ___ ________ ___ _________ ______ ________.
_______ _____ __________ ___ _______ ________ __________ __________ ___.
_____ _________ ____ _____ _________ __________ _______ ____ _______ _______ ________ _______.
___ __________ _____ ___ ________ __________ ______.
_______ ______ ________ ________ _______ ___ ________ ______.
___ _____ ________ ____ ________ _____ ______ _________ __________ __________ _______.
____ _____ __________ _______ ___ _______ ____ _______ _______ ____ _______ ____.
___ _____ _______ ________ ________.
________ ______ __________ _______ ______ _________ _________ ___ _______ _______ _______ ________.
_____ _______ ____ _______ _______ _______ _______ ____.
___ ________ ____ __________ __________ _________ ________ _______ ______ _____.
_________ ________ ________ ____ ________ ___ ___ ________ _______ _____ _______.
_____ __________ ____ ______ ____ ____.
________ ______ _____ _____ __________ _______.
_____ ___ ____ _____ _______ ________ _______ ____.
___ ____ _________ ____ _________ _____ _____ _________.
________ _______ _____ _____ _________.
_______ ________ _______ __________ ___ ___ ______ ______.
__________ ________ ________ _______ ______ ___ _________ _____ ____ ____ ________.
________ _____ _____ ________ _____ ________ ______.
____ _____ _____ ____ __________ ______.
______ _______ ______ ________ _______ _______ ___ __________ ________ ______.
___ ________ _______ _______ _________ __________.
__________ _______ ___ ______ ____ ______ ___.
_______ _____ ___ ___ ________ _______ __________ ___.
_____ ________ ______ __________ ______.
__________ ____ _______ ____ ______ ___ ________ _________ ___ ______ ________.
______ ______ ______ ____ _____ ____ ______ _______.
Skip in 10
A variable is a named storage location in memory that holds a value of a certain type. Variables can be classified into several types, including automatic and static variables.
An automatic variable is a variable that is allocated on the stack at runtime, when the function containing the variable is called. The lifetime of an automatic variable is limited to the scope of the function in which it is declared. This means that the variable is created when the function is called, and destroyed when the
_______ ______ ________ ______ _______ _________ _________.
______ _________ ________ __________ ____ ____ __________ ____ _______ __________ _____ ____.
________ ______ ______ __________ _______ _________ _______ ___ ______.
_______ ______ ______ ________ __________ _______ ___ ________ ___ _________ ______ ________.
_______ _____ __________ ___ _______ ________ __________ __________ ___.
_____ _________ ____ _____ _________ __________ _______ ____ _______ _______ ________ _______.
___ __________ _____ ___ ________ __________ ______.
_______ ______ ________ ________ _______ ___ ________ ______.
___ _____ ________ ____ ________ _____ ______ _________ __________ __________ _______.
____ _____ __________ _______ ___ _______ ____ _______ _______ ____ _______ ____.
___ _____ _______ ________ ________.
________ ______ __________ _______ ______ _________ _________ ___ _______ _______ _______ ________.
_____ _______ ____ _______ _______ _______ _______ ____.
___ ________ ____ __________ __________ _________ ________ _______ ______ _____.
_________ ________ ________ ____ ________ ___ ___ ________ _______ _____ _______.
_____ __________ ____ ______ ____ ____.
________ ______ _____ _____ __________ _______.
_____ ___ ____ _____ _______ ________ _______ ____.
___ ____ _________ ____ _________ _____ _____ _________.
________ _______ _____ _____ _________.
_______ ________ _______ __________ ___ ___ ______ ______.
__________ ________ ________ _______ ______ ___ _________ _____ ____ ____ ________.
________ _____ _____ ________ _____ ________ ______.
____ _____ _____ ____ __________ ______.
______ _______ ______ ________ _______ _______ ___ __________ ________ ______.
___ ________ _______ _______ _________ __________.
__________ _______ ___ ______ ____ ______ ___.
_______ _____ ___ ___ ________ _______ __________ ___.
_____ ________ ______ __________ ______.
__________ ____ _______ ____ ______ ___ ________ _________ ___ ______ ________.
______ ______ ______ ____ _____ ____ ______ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.