Question
Explain how a computer will execute the following high-level language program segment:
int a-25, b=75, с;
c=b-a.
Answer :
Word Count : 142
____ ___ ___ _____ __________ __________ _______ ___ _____.
___ ___ ____ ____ ___.
______ ___ _____ _________ _______ ___ ___ _____ _______ ______.
___ _______ ______ _________ ____ __________.
______ ___ _______ _____ ____ ______.
___ ___ _______ ______ ___ ___.
______ _________ ________ _________ ________ ____ ____.
___ _________ ______ _______ _________ ____ _______ _________ __________.
____ _______ ________ ______ ______.
_________ __________ __________ __________ __________ ______ ___ ___ ______ ________ ________.
_____ _______ ___ ______ _____ __________ ____ ______ _____.
Skip in 10
When the program is executed, the first step is that the memory locations are created for the variables declared. The variable `a` is assigned the value 25, the variable `b` is assigned the value 75, and the variable `c` is left uninitialized until a value is stored. The computer then reads the instruction
_______ ______ ___ _______ ________ ______.____ ___ ___ _____ __________ __________ _______ ___ _____.
___ ___ ____ ____ ___.
______ ___ _____ _________ _______ ___ ___ _____ _______ ______.
___ _______ ______ _________ ____ __________.
______ ___ _______ _____ ____ ______.
___ ___ _______ ______ ___ ___.
______ _________ ________ _________ ________ ____ ____.
___ _________ ______ _______ _________ ____ _______ _________ __________.
____ _______ ________ ______ ______.
_________ __________ __________ __________ __________ ______ ___ ___ ______ ________ ________.
_____ _______ ___ ______ _____ __________ ____ ______ _____.
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.