whats the use of header file in c?
Answers were Sorted based on User's Feedback
Answer / shalini
header file constitutes all the pre defined functions that
are necessary for a program to run.hence whenever u compile
a program the compiler links all the header files into the
corresponding program and starts execution
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / prabhakar
because it consists the definations of per defined functions
...
hence it will be includes the corresponding definations of
function when ever you called the function.
| Is This Answer Correct ? | 4 Yes | 3 No |
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Go through this linked list concept.While traversing through the singly linked list sometimes the following code snippet "while(head != NULL)" is used and other times "while(head->link != NULL)"is used(Here head is the pointer pointing to the first node,node has two parts data part and link part).What is the difference between head != NULL and Head->link != NULL and in which situation are they used?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?
Where are the auto variables stored?
Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?
What is the difference between constant pointer and pointer to a constant. Give examples.
What are the different types of pointers?
What is the right way to use errno?
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.