InterviewSolution
| 1. |
If You Want To Share Several Functions Or Variables In Several Files Maintaining The Consistency How Would You Share It? |
|
Answer» To maintain the CONSISTENCY between several files firstly place each definition in '.c' file than USING external declarations PUT it in '.h' file after it is included .h file we can use it in several files using #INCLUDE as it will be in one of the header files, thus to maintain the consistency we can make our own header file and include it where ever needed. To maintain the consistency between several files firstly place each definition in '.c' file than using external declarations put it in '.h' file after it is included .h file we can use it in several files using #include as it will be in one of the header files, thus to maintain the consistency we can make our own header file and include it where ever needed. |
|