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

Why c language?

1 Answers  


Write a program to print all permutations of a given string.

1 Answers   JPMorgan Chase,


Given a string write a program to print all alphabetical characters in the order of their occurance first,followed by the sum of the numeric characters then followed by the special characters in the order of their occurance.

1 Answers   College School Exams Tests, Wipro,


What does int main () mean?

1 Answers  


program in c to print 1 to 100 without using loop

9 Answers   Wipro,


i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).

1 Answers  


What is the use of keyword VOLATILE in C?

1 Answers  


What does it mean when the linker says that _end is undefined?

1 Answers  


What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }

5 Answers   ADITI, Wipro,


What is bin sh c?

1 Answers  


What is scope and lifetime of a variable in c?

1 Answers  


What is the difference between pure virtual function and virtual function?

1 Answers  


Categories