Question
How is an external variable defined? How is it initialised? What happens when an external variable definition does not include the assignment of an initial value?
Answer :
Word Count : 363
___ ________ _________ _____ _____ ____ __________ _____.
_________ _____ __________ ____ _______.
___ __________ __________ ____ ________ _____ __________ __________ ___ __________.
_____ __________ ___ _________ _______ ___ _____ ________ ____ _______.
_______ _____ ________ _____ ______ _______ ____ _________ ________ _______ ___.
______ ______ ________ ____ ________.
_________ ___ __________ __________ ____ ________ _______ _________ ________ _______ _______.
_______ __________ _______ _______ __________ __________ _____ _____ _____ ________ _____ ____.
______ ________ ________ _____ _____ ________ _______ ________ _______ ______ ___.
____ ________ ______ _________ ________ _______ ____ ________ _______ ____ __________ ____.
______ ____ ____ ____ ________ _______ ____ _____ __________.
___ _________ ___ _____ ______ ______ ____ _________ _________ _________ ________ _________.
________ ____ _______ ________ _________ _______ _______ ___ _____ ___ _______ ______.
_________ ___ ______ _______ _________ ______.
________ _______ _______ __________ _____ ________ _________ __________ __________ _________ ___.
__________ _____ __________ _____ ____.
_________ ________ ________ __________ ____ ____.
_________ ________ ________ ____ ________ _____ _______ _____ ________ _____.
____ _______ _________ __________ ____ ____ _______ _______.
___ ________ ________ ______ __________ ___ ________ ___ ________.
__________ _______ _________ _________ ___ _______ _________ _____ ________.
_____ _____ ________ ____ __________.
_______ _________ _____ _________ ________ ____ ________ ________ ________ __________ ______.
_________ __________ ______ _________ ______ _______ _____ _______ ____ ___ __________.
___ _____ __________ _________ _____ ______.
_____ _______ ______ ______ ____ ______ ____ _______ ____ __________ __________.
__________ _____ _________ ___ __________ ________ ___ _____ __________ ______ ____ __________.
__________ ____ ____ __________ _________ _____ ________ __________ _____ __________ ________ _________.
______ _________ ______ ___ _______ _________ ____ _______ ______.
_________ ______ _________ ________ _____ _______ ________ _____ ______.
___ _________.
Skip in 10
An external variable is a variable that is declared outside of any function and can be accessed by multiple source files within a program. It is declared with the `extern` keyword in the files where it is used, and its definition (memory allocation) typically resides in one of the source files.
1. **Definition of an External Variable**:
An external variable is defined in one source file without using the `extern` keyword. This definition reserves memory for the variable. For example:
_________ _____ __________ ____ _______.
___ __________ __________ ____ ________ _____ __________ __________ ___ __________.
_____ __________ ___ _________ _______ ___ _____ ________ ____ _______.
_______ _____ ________ _____ ______ _______ ____ _________ ________ _______ ___.
______ ______ ________ ____ ________.
_________ ___ __________ __________ ____ ________ _______ _________ ________ _______ _______.
_______ __________ _______ _______ __________ __________ _____ _____ _____ ________ _____ ____.
______ ________ ________ _____ _____ ________ _______ ________ _______ ______ ___.
____ ________ ______ _________ ________ _______ ____ ________ _______ ____ __________ ____.
______ ____ ____ ____ ________ _______ ____ _____ __________.
___ _________ ___ _____ ______ ______ ____ _________ _________ _________ ________ _________.
________ ____ _______ ________ _________ _______ _______ ___ _____ ___ _______ ______.
_________ ___ ______ _______ _________ ______.
________ _______ _______ __________ _____ ________ _________ __________ __________ _________ ___.
__________ _____ __________ _____ ____.
_________ ________ ________ __________ ____ ____.
_________ ________ ________ ____ ________ _____ _______ _____ ________ _____.
____ _______ _________ __________ ____ ____ _______ _______.
___ ________ ________ ______ __________ ___ ________ ___ ________.
__________ _______ _________ _________ ___ _______ _________ _____ ________.
_____ _____ ________ ____ __________.
_______ _________ _____ _________ ________ ____ ________ ________ ________ __________ ______.
_________ __________ ______ _________ ______ _______ _____ _______ ____ ___ __________.
___ _____ __________ _________ _____ ______.
_____ _______ ______ ______ ____ ______ ____ _______ ____ __________ __________.
__________ _____ _________ ___ __________ ________ ___ _____ __________ ______ ____ __________.
__________ ____ ____ __________ _________ _____ ________ __________ _____ __________ ________ _________.
______ _________ ______ ___ _______ _________ ____ _______ ______.
_________ ______ _________ ________ _____ _______ ________ _____ ______.
___ _________.
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.