In this video you will learn what are header files, main function and c statement.
Header files in C/C++ and its uses
C language has numerous libraries that include predefined functions to make programming easier. In C language, header files contain the set of predefined standard library functions. You request to use a header file in your program by including it with the C preprocessing directive “#include”. All the header file have a ‘.h’ an extension. By including a header file, we can use its contents in our program.
C++ also offers its users a variety of functions, one of which is included in header files. In C++, all the header files may or may not end with the “.h” extension but in C, all the header files must necessarily end with the “.h” extension.
A header file contains:
Function definitions
Data type definitions
Macros
It offers the above features by importing them into the program with the help of a preprocessor directive “#include”. These preprocessor directives are used for instructing compiler that these files need to be processed before compilation.
In C program should necessarily contain the header file which stands for standard input and output used to take input with the help of scanf() and printf() function respectively.
In C++ program has the header file which stands for input and output stream used to take input with the help of “cin” and “cout” respectively.
There are of 2 types of header file:
✓Pre-existing header files: Files which are already available in C/C++ compiler we just need to import them.
✓User-defined header files: These files are defined by the user and can be imported using “#include”.
༺࿅
Fᴏʟʟᴏᴡ Us Oɴ࿅
༻
√🅘ɴsᴛᴀɢʀᴀᴍ:- / ghulam__nabi_official
√🅣ᴡɪᴛᴛᴇʀ:- / ghulam____nabi
√Ⓕᴀᴄᴇʙᴏᴏᴋ Ⓟᴀɢᴇ:- / conert.idea
🅳ɪsᴄʟᴀɪᴍᴇʀ:Ⓒᴏᴅɪɴɢ Ⓕᴀᴄᴛ Cʜᴀɴɴᴇʟ DOES NOT Pʀᴏᴍᴏᴛᴇ ᴏʀ ᴇɴᴄᴏᴜʀᴀɢᴇ Aɴʏ ɪʟʟᴇɢᴀʟ ᴀᴄᴛɪᴠɪᴛɪᴇs , ᴀʟʟ ᴄᴏɴᴛᴇɴᴛs ᴘʀᴏᴠɪᴅᴇᴅ ʙʏ Tʜɪs Cʜᴀɴɴᴇʟ ɪs ᴍᴇᴀɴᴛ ғᴏʀ EDUCATIONAL PURPOSE ᴏɴʟʏ . Tʜɪs ᴠɪᴅᴇᴏ ɪs Oɴʟʏ Fᴏʀ Eᴅᴜᴄᴀᴛɪᴏɴᴀʟ Pᴜʀᴘᴏsᴇs.
Cᴏᴘʏʀɪɢʜᴛ Dɪsᴄʟᴀɪᴍᴇʀ Uɴᴅᴇʀ Sᴇᴄᴛɪᴏɴ 107 ᴏғ ᴛʜᴇ Cᴏᴘʏʀɪɢʜᴛ Aᴄᴛ 1976, ᴀʟʟᴏᴡᴀɴᴄᴇ ɪs ᴍᴀᴅᴇ ғᴏʀ "ғᴀɪʀ ᴜsᴇ" ғᴏʀ ᴘᴜʀᴘᴏsᴇs sᴜᴄʜ ᴀs ᴄʀɪᴛɪᴄɪsᴍ, ᴄᴏᴍᴍᴇɴᴛ, ɴᴇᴡs ʀᴇᴘᴏʀᴛɪɴɢ, ᴛᴇᴀᴄʜɪɴɢ, sᴄʜᴏʟᴀʀsʜɪᴘ, ᴀɴᴅ ʀᴇsᴇᴀʀᴄʜ. Fᴀɪʀ ᴜsᴇ ɪs ᴀ ᴜsᴇ ᴘᴇʀᴍɪᴛᴛᴇᴅ ʙʏ ᴄᴏᴘʏʀɪɢʜᴛ sᴛᴀᴛᴜᴛᴇ ᴛʜᴀᴛ ᴍɪɢʜᴛ ᴏᴛʜᴇʀᴡɪsᴇ ʙᴇ ɪɴғʀɪɴɢɪɴɢ. Nᴏɴ-ᴘʀᴏғɪᴛ, ᴇᴅᴜᴄᴀᴛɪᴏɴᴀʟ ᴏʀ ᴘᴇʀsᴏɴᴀʟ ᴜsᴇ ᴛɪᴘs ᴛʜᴇ ʙᴀʟᴀɴᴄᴇ ɪɴ ғᴀᴠᴏʀ ᴏғ ғᴀɪʀ ᴜsᴇ.
HashTags
#headerfiles #cstatements #mainfunction
Queries Solved
header files in c,header files,header files in c programming,c language,header files in c++,c (programming language),header files in c language,header files in c language in hindi,what are header files in c++,header file in hindi,what are header files,what is header file,header file,c language header files in telugu,c programming language,header file in c,c language all header files in hindi,working with header files in c language,in c language