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
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 |
Why is a semicolon (;) put at the end of every program statement?
write a program to convert a expression in polish notation (postfix) to inline (normal)
what is different between auto and local static? why should we use local static?
What is main () in c?
What is an example of structure?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Can the sizeof operator be used to tell the size of an array passed to a function?
What are the different flags in C? And how they are useful? And give example for each in different consequences?
In C programming, what command or code can be used to determine if a number of odd or even?
What is the difference between printf and scanf )?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
what is data structure