Question: If I declare function prototypes in header.c, do I need to define the functions in every source file that wants to use them?? For example,

If I declare function prototypes in header.c, do I need to define the functions in every source file that wants to use them??

For example, I have 3 files: node.h tree.c and main.c

All functions are declared in node.h. I then define the functions in tree.c. Do i have to define them again in main.c to be able to use it the same as tree.c?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!