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 are the different types of objects used in c?

0 Answers  


Do string constants represent numerical values?

0 Answers  


Is there any possibility to create customized header file with c programming language?

0 Answers  


consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is

4 Answers   TCS,


How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 Answers  






proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

7 Answers   Hughes,


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

0 Answers   TCS,


Write a program to write a given string in maximum possibilities? i.e str[5]="reddy"; i.e we can write this string in 120 ways for that write a program

3 Answers   Subex,


Is the exit() function same as the return statement? Explain.

0 Answers   Agilent, ZS Associates,


what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


What does %p mean c?

0 Answers  


what are the interview question's in the language c

2 Answers   Nipuna,


Categories