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

can u give me the good and very optimised code for a car racing game?

0 Answers  


How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)

1 Answers   iLantus, Subex,


a c code by using memory allocation for add ,multiply of sprase matrixes

1 Answers  


List the variables are used for writing doubly linked list program.

1 Answers   Infosys, Wipro,


how to find the given number is prime or not?

6 Answers   IMS, ING,


program to print upper & lower triangle of a matrix

2 Answers   TCS,


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1 Answers  


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

1 Answers  


number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  


What do you mean by keywords in c?

1 Answers  


pascal triangle program

2 Answers  


What is key word in c language?

4 Answers   ABC,


Categories