What are .h files and what should I put in them?
Answers were Sorted based on User's Feedback
Answer / deepti
(.h)means a header file,
and all the header files r included using
#include which is a preprocessor directive
i.e #include<stdio.h>
all the data input/output functions r stored in stdio.h
(where std-standard i-input o-output)
for eg.printf,scanf,putchar,getchar,puts,gets..
#include<conio.h>
(where con-console i-input o-output)
for eg.getch(),clrscr()...
there r many header files for diff purposes
like
#include<math.h> for maths
#include<iostream.h> for streams
etc........
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / guest
Header files (also called ".h files") should generally contain
common declarations and macro, structure, and typedef
definitions, but not variable or function definitions.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / siri&akhi
we can include header files i.e.,conio.h,iostream.h,stdio.h
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between ++a and a++?
how can use subset in c program and give more example
How do you search data in a data file using random access method?
void main(int argc,char *argv[],char *env[]) { int i; for(i=1;i<argc;i++) printf("%s",env[i]); }
Explain the use of keyword 'register' with respect to variables.
convert 0.9375 to binary
Is c an object oriented programming language?
what is the use of call back function in c?tell me with example
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
Why pointers are used in c?
What is union and structure?
How can I ensure that integer arithmetic doesnt overflow?