whats the use of header file in c?

Answer Posted / shalini

header file constitutes all the pre defined functions that
are necessary for a program to run.hence whenever u compile
a program the compiler links all the header files into the
corresponding program and starts execution

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

1505


What is the purpose of & in scanf?

587


What is the benefit of using an enum rather than a #define constant?

648


Can the sizeof operator be used to tell the size of an array passed to a function?

608


What functions are used for dynamic memory allocation in c language?

592






What is the difference between single charater constant and string constant?

615


Explain what is the difference between functions abs() and fabs()?

611


Who is the main contributor in designing the c language after dennis ritchie?

541


How can I list all of the predefined identifiers?

570


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

637


What is array of pointers to string?

559


What is the size of enum in c?

611


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

643


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

659


What is calloc in c?

652