Header file C programming Hindi tutorials

Header file C programming Hindi tutorials: Aaj ke ish tutorials me hum header files ke bare me padhenge. or yeh bhi janege ki header file kya hoti hai. or header file ko program me kyu or Kaise use Kiya jata hai.
Header file C programming Hindi tutorials
header files

Header file C programming Hindi tutorials

Header file: definition

Header file ek predefine file hoti hai. jisme predefine library functions or macros hote hai. in header file me define functions ko use Karne ke liye hame pahle header file ko program me include Karna hota hai.


How to include header file in program

syntax 1:
#include < header-file-name.h>
syntax 2:
#include "header-file-name.h"
Example:
#include <stdio.h>
#include "graphics.h"
Note: header file ko include Karne ke liye upar diye gaye kisi ek syntax ko follow kar skte hai. apko bas ush header file ka name header-file-name ki jagah likhna hai.
Aap chahe to apni khud ki header file bana skte hai c programming me.


Difference between "graphics.h" and <graphics.h>.

yaha baat aati hai ki syntax number first or syntax number second me kya difference hai.


"graphics.h" method

ish syntax ko use karne ka matlabe yeh hai ki. maan lijiye ki aapne jis file me graphics.h ko include kiya hai use kisi directory me save kiya hai. to jab graphics. h kisi file ko search karegi to na sirf current file saving directory me search karegi. balki baki directories me bhi file ko search karti hai.

<graphics.h> method

ish syntax ko use karne ka matlab yeh hai ki jab bhi graphics.h file kisi file ko search karegi to vo sirf usi directory me file ko search karegi jaha file save hai. 


List of some c header files

  • assert.h
  • complex.h
  • ctype.h
  • conio.h
  • errno.h
  • fenv.h
  • float.h
  • inttypes.h
  • iso646.h
  • limits.h
  • locale.h
  • math.h
  • setjmp.h
  • signal.h
  • stdalign.h
  • stdarg.h
  • stdatomic.h
  • stdbool.h
  • stddef.h
  • stdint.h
  • stdio.h
  • stdlib.h
  • stdnoreturn.h
  • string.h
  • tgmath.h
  • threads.h
  • time.h
  • uchar.h
  • wchar.h
  • wctype.h
header file c programming language in Hindi tutorials 

Post a Comment

0 Comments