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

Answer Posted / cheers!

You can include a C file in an another file as depicted in the above example.
And you can also include an another process call ( which is basically a program) in a running program like..

int main()
{
main() // example 1
system("./RunMyProg"); // example 2
system("ls -l"); // example 3
}

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2226


plz let me know how to become a telecom protocol tester. thank you.

1740


What is the difference between array_name and &array_name?

774


Why void is used in c?

560


What is data structure in c language?

599






2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

2513


If fflush wont work, what can I use to flush input?

608


How can I change their mode to binary?

690


What is a substring in c?

583


How will you find a duplicate number in a array without negating the nos ?

1637


how to find binary of number?

3421


What is a ternary operator in c?

646


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

1575


what are enumerations in C

720


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

904