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 |
What is the difference between functions getch() and getche()?
Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....
What is const and volatile in c?
what are far pointers?
Write a C program to fill a rectangle using window scrolling
write a 'c' program to sum the number of integer values
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
can we write a program in c for printf and scanf without using header file stdio.h
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
Combinations of fibanocci prime series