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
I need previous papers of CSC.......plz help out by posting them.......
how to find anagram without using string functions using only loops in c programming
Explain the use of 'auto' keyword in c programming?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
cavium networks written test pattern ..
What is a newline escape sequence?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
How can a number be converted to a string?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What are global variables and how do you declare them?
Explain how can a program be made to print the name of a source file where an error occurs?
What are the different types of objects used in c?
How does selection sort work in c?
Is c programming hard?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1