Can we include one C program into another C program if yes how?

Answer Posted / vinay kashyap

may be using the preprocessor directives.. like..

#include "prog1.c"
#include<stdio.h>
int main()
{
.
.
.
.
}

Is This Answer Correct ?    15 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2783


difference between native and cross compilers

1879


How can you read a directory in a C program?

892


How do I create a directory? How do I remove a directory (and its contents)?

859


What are operators in c?

787


Is c procedural or object oriented?

784


What is static volatile in c?

751


What is the explanation for modular programming?

906


What are examples of structures?

796


What is the difference between strcpy() and memcpy() function in c programming?

858


How can I avoid the abort, retry, fail messages?

868


What is the difference between #include

and #include “header file”?

782


Can I initialize unions?

816


Differentiate fundamental data types and derived data types in C.

825


What is keyword with example?

823