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

which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1125


What is the meaning of && in c?

545


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

583


What are the 5 organizational structures?

562


How to establish connection with oracle database software from c language?

1669






Explain null pointer.

615


What is hungarian notation? Is it worthwhile?

689


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1066


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3837


What is the difference between union and anonymous union?

831


What is int main () in c?

619


Linked lists -- can you tell me how to check whether a linked list is circular?

637


What is wild pointer in c?

601


Why we use void main in c?

590


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

606