What are .h files and what should I put in them?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / siri&akhi
we can include header files i.e.,conio.h,iostream.h,stdio.h
| Is This Answer Correct ? | 0 Yes | 0 No |
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What is function pointer c?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,
write a program to insert an element at the specified position in the given array in c language
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
write a c program in such a way that if we enter the today date the output should be next day's date.
Differentiate between calloc and malloc.
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Is there any book to know about Basics of C Language?
What is header file in c?
how can write all 1to 100 prime numbers using for loop,if and break ?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?