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

Explain what is the heap?

806


What are header files and what are its uses in C programming?

856


How do you generate random numbers in C?

912


Explain about C function prototype?

823


Find MAXIMUM of three distinct integers using a single C statement

826


What is the difference between fread buffer() and fwrite buffer()?

902


Difference between exit() and _exit() function?

891


Is c easy to learn?

741


What is pre-emptive data structure and explain it with example?

3476


What is the 'named constructor idiom'?

824


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

910


What is a 'null pointer assignment' error?

947


What is the code in while loop that returns the output of given code?

1642


Explain enumerated types.

798


Tell me the use of bit field in c language?

839