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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use namespace feature?

812


What should malloc(0) do?

807


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1921


What is c token?

824


Why is c so popular?

873


Is c still used?

791


What is the heap in c?

839


Is c compiled or interpreted?

881


What are pointers?

845


What is double pointer in c?

762


What is the use of pointers in C?

830


What is the difference between struct and typedef struct in c?

881


What is the meaning of c in c language?

808


What is array of pointers to string?

788


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2925