Question: Define variable and lifetime of a variable. (5 marks) b) Consider the requirements for using global variables in C. i. How can the global variables

Define variable and lifetime of a variable. (5 marks) b) Consider the requirements for using global variables in C. i. How can the global variables be accessed in other C compilation units? (2 marks) ii. How can the global variables be hidden from other C compilation units? (3 marks) Why programmer sometimes needs to hide global variables? (2 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
