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

Answer Posted / yogesh bansal

Not Sure..But If the below way is correct. then yes, we can
do that

#include <stdio.h>
int main()
{
printf("this is first program\n");
int main()
{
printf("this is second program\n");
return 0;
}
main();
return 0;
}

Is This Answer Correct ?    7 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the explanation for the dangling pointer in c?

671


What is the purpose of clrscr () printf () and getch ()?

591


How can I implement sets or arrays of bits?

601


What is indirection? How many levels of pointers can you have?

655


What happens if header file is included twice?

650






What is operator precedence?

641


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1446


Where register variables are stored in c?

546


What is page thrashing?

649


Is c dynamically typed?

665


What is dynamic memory allocation?

804


Difference between pass by reference and pass by value?

656


How do I copy files?

619


What does %2f mean in c?

672


Why do we use c for the speed of light?

603