external variablesdifferent functions of the


External Variables

Different functions of the similar program can be written in different source files and can be compiled together. The scope of a global variable is not limited to any one function, but is extended to all the functions that are explained after it is declared. Though, the scope of a global variable is limited to only those functions, which are in the same file scope. If we require to use a variable defined in another file, we can use extern to declare them.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: external variablesdifferent functions of the
Reference No:- TGS0309227

Expected delivery within 24 Hours