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 |
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
Can math operations be performed on a void pointer?
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Why is structure padding done in c?
a simple program in c language
What does static variable mean in c?
#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); }
what is the output of below int n=10; (n++)++; printf("%d",n);
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'); }
int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?
how can i get output like this? 1 2 3 4 5 6