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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between ++u and u++?

633


What is a node in c?

541


Why isnt there a numbered, multi-level break statement to break out

581


Was 2000 a leap year?

618


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2711






What are global variables and explain how do you declare them?

565


What is define c?

564


What is #define used for in c?

607


What is a nested formula?

597


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

972


Can we assign integer value to char in c?

609


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2152


What is malloc calloc and realloc in c?

656


How can I discover how many arguments a function was actually called with?

628


What does c mean in standard form?

591