say we have a pgm p1.c which has some function and definitions and the same functions are to be accessed in the other program p2.c. i want this to be done using the preprocessor directicve
#include "filename"
How to add one program into the other using #include in c pgm?
you can include another program by eg p1.c
#include "p1.c" - place p1.c in current directory
#include "d:\pro\p1.c" - place p1 in D:\pro\p1.c
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment