Question: A program uses a function named convert() in addition to its main function. The function main() declares the variable x within its body and the
A program uses a function named convert() in addition to its main function. The function main() declares the variable x within its body and the function convert declares two variables y and z within its body, z is made static. A fourth variable m is declared ahead(ie at top) of both the functions. State the visibility and lifetime of each of these variables.
Step by Step Solution
3.55 Rating (152 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below The visibility and lifetime of each of ... View full answer
Get step-by-step solutions from verified subject matter experts
