JOIN us on
WhatsApp Group Join Now
Telegram Join Join Now

हिंदी माध्यम नोट्स

Categories: C Language in hindi

Header File : Stdio.h और string.h in c language in hindi , list and functions of header file in c

list and functions of header file in c ,  Header File : Stdio.h और string.h in c language in hindi :-
Stdio.h का use standard input output function include नहीं होते है| इसमें निन्म function का use किया जाता है:-
1. fclose()
इस function का use file को क्लोज करने के लिए  किया जाता है|इसमें file pointer pass होता है |अगर file close हो जाती तब ‘1’ return होती है |
2. feof()
इस function का use ,file के end of file error को use किया जाता है |अगर file की end होते है तब ‘1’ होती है |अगर file की end नहीं आता तब ‘1’ return होगा |
3. fgetc()
इस function का use file मे किसी charecter को enter करने के लिए किया जाता है |इसमें एक character function के argument मे pass होता है |
4. fgets()
इस function का use ,string को किसी file मे से read करने के लिए किया जाता है |इसमें तीन parameters pass होता है |
(1)string name : इसमें string का नाम pass होता है |
(2)no of element : इसमें string मे character के number pass होता है |
(3) file pointer : इसमें file pointer pass होता है जिसमे string को write करना होता है |
5. fopen()
इस function का use file मे open करने के लिए किया जाता है |इसमें एक file pointer को  function के argument मे pass होता है |
6. fprintf()
इस function का use,किसी data को file मे read  करने के लिए किया जाता है |इसमें data specifier और variable name का use किया जाता है |
7. fputc()
इस function का use , किसी file मे , charecter data को file मे put करने के लिए किया जाता है |इस function मे, character को function के argument मे पास्ड किया जाता है |
8. fread()
इस function का use , data item को file से string मे assign करते है | इसमें तीन parameter होते है :-
(1)string name : इसमें string का नाम pass होता है |
(2)no of element : इसमें string मे character के number pass होता है |
(3) file pointer : इसमें file pointer pass होता है जिसके data को  string मे write करना होता है |
9. fscanf()
इस function का use,file मे data को write करने के लिए किया जाता है |
10. ftell()
इस function का use , file मे pointer के current position को return करने के लिए किया जाता है |
11. fwrite()
इस function का use , किसी string के portion को file मे store करने के लिए किया जाता है |
12. getc()
किसी single charecter को file मे store करने के लिए किया जाता है |
13. putc()
इस function का use , किसी charecter को file मे put करने के लिए किया जाता है |
14. putchar()
इस function का use , chartecter को आउटपुट statement मे भेजा जाता है |
15. puts()
इस function का use , string को output screen मे भेजा जाता है |string.h मे string related function होते है | जैसे
1. strcmp()
इस function का use दो string को compare करने के लिए किया जाता है |अगर दोनों string equal होती तब ‘1’ return होता है |अन्यथा ‘0’ return होगा |
2. strcmpi()
इस function का use ,दो string को compare करने के लिए किया जाता है |लेकिंग
अगर s1 < s2 है तब negetative value return होगी |
अगर s1=s2 है तब ‘0’ return होगी |
अगर s1>s2 है तब पॉजिटिव value आएगी |
3. strcpy()
इस function का use एक string को दुसरे string मे copy करने के लिए किया जाता है |जैसे strcmp(s1,s2)-इस statement से string s2 की copy string s1 मे store हो जाएगी |
4. strlen()
इस function का use string की length को calculate करने के लिए किया जाता है |इस function के string name as parameter pass होता है |
5. strset()
इस function का use , string की सभी value को set करने के लिए किया जाता है |time.h header file मे ,time related function include होते है |
1. difftime() :
इस function का use ,time difference को calculate करने के लिए किया जाता है |अगर difftime(11,12) – इस statement से 11 और 12 के बीच का time difference calculate हो जाता है |
2. time()
इस function का use ,second की value को return करने के लिए किया जाता  है |ये second base time से आगे होती है |

इस article मे हमने stdio.h  , string.h और time.h header file के सभी functions को पढ़ा |अतः अगर आप एक अच्छे programmer बनाना चाहते हो तो इस functions को जरुर याद कर ले|

Sbistudy

Recent Posts

सती रासो किसकी रचना है , sati raso ke rachnakar kaun hai in hindi , सती रासो के लेखक कौन है

सती रासो के लेखक कौन है सती रासो किसकी रचना है , sati raso ke…

23 hours ago

मारवाड़ रा परगना री विगत किसकी रचना है , marwar ra pargana ri vigat ke lekhak kaun the

marwar ra pargana ri vigat ke lekhak kaun the मारवाड़ रा परगना री विगत किसकी…

24 hours ago

राजस्थान के इतिहास के पुरातात्विक स्रोतों की विवेचना कीजिए sources of rajasthan history in hindi

sources of rajasthan history in hindi राजस्थान के इतिहास के पुरातात्विक स्रोतों की विवेचना कीजिए…

3 days ago

गुर्जरात्रा प्रदेश राजस्थान कौनसा है , किसे कहते है ? gurjaratra pradesh in rajasthan in hindi

gurjaratra pradesh in rajasthan in hindi गुर्जरात्रा प्रदेश राजस्थान कौनसा है , किसे कहते है…

3 days ago

Weston Standard Cell in hindi वेस्टन मानक सेल क्या है इससे सेल विभव (वि.वा.बल) का मापन

वेस्टन मानक सेल क्या है इससे सेल विभव (वि.वा.बल) का मापन Weston Standard Cell in…

3 months ago

polity notes pdf in hindi for upsc prelims and mains exam , SSC , RAS political science hindi medium handwritten

get all types and chapters polity notes pdf in hindi for upsc , SSC ,…

3 months ago
All Rights ReservedView Non-AMP Version
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings
JOIN us on
WhatsApp Group Join Now
Telegram Join Join Now