What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?

Answers were Sorted based on User's Feedback



What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particul..

Answer / sarmistha pattanaik

When we write C program in modular pattern, then generally
it consists of 3 parts, .h file which will contain all the
header info, main.c will contain the main function and one
more .c file which will contain all the function
definitions. In order to compile the two.c file it will
create object file with .o extention. It's a multi step
process. In order to avoid the steps, we can write all the
compiling statements in one file which is the makefile.

Is This Answer Correct ?    2 Yes 2 No

What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particul..

Answer / siva

Can anybody give the makefile.c program, so that i can easily understand.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

What is the purpose of the preprocessor directive error?

0 Answers  


How can you tell whether two strings are the same?

0 Answers  


to get a line of text and count the number of vowels in it

2 Answers  


What is strcpy() function?

0 Answers  


What are loops in c?

0 Answers  


Explain the meaning of keyword 'extern' in a function declaration.

0 Answers  


what is difference between getchar,putchar functions and printf and scanf function? does putchar show output only when input given to it

5 Answers   DIT,


1,1,5,17,61,217,?,?.

3 Answers   Apple,


What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

2 Answers   CTC,


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

0 Answers  


Identify the operators that is not used with pointer a. && b. # c. * d. >>

2 Answers  


How many keywords (reserve words) are in c?

0 Answers  


Categories