हिंदी माध्यम नोट्स
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 से आगे होती है |
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 को जरुर याद कर ले|
Recent Posts
मालकाना का युद्ध malkhana ka yudh kab hua tha in hindi
malkhana ka yudh kab hua tha in hindi मालकाना का युद्ध ? मालकाना के युद्ध…
4 weeks ago
कान्हड़देव तथा अलाउद्दीन खिलजी के संबंधों पर प्रकाश डालिए
राणा रतन सिंह चित्तौड़ ( 1302 ई. - 1303 ) राजस्थान के इतिहास में गुहिलवंशी…
4 weeks ago
हम्मीर देव चौहान का इतिहास क्या है ? hammir dev chauhan history in hindi explained
hammir dev chauhan history in hindi explained हम्मीर देव चौहान का इतिहास क्या है ?…
1 month ago
तराइन का प्रथम युद्ध कब और किसके बीच हुआ द्वितीय युद्ध Tarain battle in hindi first and second
Tarain battle in hindi first and second तराइन का प्रथम युद्ध कब और किसके बीच…
1 month ago
चौहानों की उत्पत्ति कैसे हुई थी ? chahamana dynasty ki utpatti kahan se hui in hindi
chahamana dynasty ki utpatti kahan se hui in hindi चौहानों की उत्पत्ति कैसे हुई थी…
1 month ago
भारत पर पहला तुर्क आक्रमण किसने किया कब हुआ first turk invaders who attacked india in hindi
first turk invaders who attacked india in hindi भारत पर पहला तुर्क आक्रमण किसने किया…
1 month ago