Linking of Programs using Header

                          Linking of Programs using Header

 It's only takes 4 steps to link 2 programs

1) Keep the name of the header and name of the file same
2) Declare all function declarations in the name.h as defined in name.c
3) Now call the header file name.h using #include "name.h" in main.c
4) Compile both the binaries together using gcc command.

It is Shows same behavior as in inheritance in C++

Comments

Popular posts from this blog

OS Books

How to get symbol table in gcc/g++ ?

Memory corruption issue