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

Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001

2 Answers  


Can math operations be performed on a void pointer?

0 Answers  


Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********

4 Answers  


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

0 Answers   TCS,


Why is structure padding done in c?

0 Answers  






a simple program in c language

5 Answers   IBM,


What does static variable mean in c?

0 Answers  


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,


what is the output of below int n=10; (n++)++; printf("%d",n);

3 Answers  


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

0 Answers   Wilco,


int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?

5 Answers   CMC,


how can i get output like this? 1 2 3 4 5 6

6 Answers   Excel,


Categories