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 |
What are the different types of objects used in c?
Do string constants represent numerical values?
Is there any possibility to create customized header file with c programming language?
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
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
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.
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
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
What does %p mean c?
what are the interview question's in the language c