What are .h files and what should I put in them?

Answers were Sorted based on User's Feedback



What are .h files and what should I put in them?..

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

What are .h files and what should I put in them?..

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

What are .h files and what should I put in them?..

Answer / siri&akhi

we can include header files i.e.,conio.h,iostream.h,stdio.h

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is union and structure in c?

0 Answers  


void main() { int i=5; printf("%d",i++ + ++i); }

21 Answers   ME,


How many levels deep can include files be nested?

0 Answers  


What is derived datatype in c?

0 Answers  


How can I find out how much memory is available?

1 Answers   Persistent,






How can I find the day of the week given the date?

0 Answers  


What is ## preprocessor operator in c?

0 Answers  


Difference between fopen() and open()?

3 Answers   Aricent,


What is the purpose of realloc()?

0 Answers  


1. Write a c pgm to print 1 to 100 without using loops. 2. Write a c pgm for leap year 3. Write a c pgm fibbonacci series,factorial 4. Write a c pgm count no of lines , blanks, tabs in a para(File concept) 5. Write a c pgm to print the letter as per given condition i.e.. if u give 4 out put should b 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 6.how do get the o/p in number from 1 to 100 in the screen without using control statement? 7. who do u print the word "hello world" without using "printf" statement? 8. write sql program to get the detail of student in a class? Definitions: structure union arrays linkedlist macros directives difference b/w pre processorsDiffrence: 1.Constructors and destructors 2.Structure and Union 3.Array and Lists 4.pre processor... 5. Privillages in C++ 6.structure and union 7.break and continue 8.while and dowhile Pgm..

3 Answers  


what is the stackpointer

2 Answers  


What is difference between function overloading and operator overloading?

0 Answers  


Categories