what is a headerfile?and what will be a program without it
explain nan example?

Answers were Sorted based on User's Feedback



what is a headerfile?and what will be a program without it explain nan example?..

Answer / yyy

header file contains pre defined functions.that are used in
the programme.
header files will have .h as an extension.
eg:stdio.h is a header file which contains input and output
functions like scanf and printf.

Is This Answer Correct ?    7 Yes 2 No

what is a headerfile?and what will be a program without it explain nan example?..

Answer / xyz

headerfile is a library of functions,which the program
refers to and uses required functions to execute the
operation..!

Is This Answer Correct ?    4 Yes 2 No

what is a headerfile?and what will be a program without it explain nan example?..

Answer / vignesh1988i

header file is a one of the important librarary files where our functions which are built in (printf(), scanf(), getche(),getch(),strcpy(), etc etc) would be defined and retrieved for other operations when the functions defined in the header file is called..........


thank u

Is This Answer Correct ?    0 Yes 0 No

what is a headerfile?and what will be a program without it explain nan example?..

Answer / praveen badiger

Header files are predefined function, these are defined in .h extention .if u not used the header file compiler will through an error message..

Is This Answer Correct ?    0 Yes 0 No

what is a headerfile?and what will be a program without it explain nan example?..

Answer / prabu

header file consists of several modules in which the printf
and scanf function can call automatically througyh header file

Is This Answer Correct ?    0 Yes 1 No

what is a headerfile?and what will be a program without it explain nan example?..

Answer / pradeep m.c

headerfile is one includes pre-defined functions n
and definatrions and is a librari of functions,which the
programme refers to and uses required function to
execute operations.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

How to swap two values using a single variable ? condition: Not to use Array and Pointer ?

6 Answers  


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

0 Answers   TCS,


What is the meaning of ?

0 Answers  


Why is sizeof () an operator and not a function?

0 Answers  


What are the characteristics of arrays in c?

0 Answers  


What is a pointer value and address in c?

0 Answers  


Wt are the Buses in C Language

0 Answers   Infosys,


what r the cpu registers r ther?

1 Answers  


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

0 Answers   Infosys,


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

5 Answers   Vector, Vector Solutions,


void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..

1 Answers  


44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

6 Answers   Amdocs,


Categories