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

Question Tag Definition in english with examples upsc ssc ias state pcs exames important topic

Question Tag Definition • A question tag is a small question at the end of a…

2 weeks ago

Translation in english grammer in hindi examples Step of Translation (अनुवाद के चरण)

Translation 1. Step of Translation (अनुवाद के चरण) • मूल वाक्य का पता करना और उसकी…

2 weeks ago

Report Writing examples in english grammer How to Write Reports explain Exercise

Report Writing • How to Write Reports • Just as no definite rules can be laid down…

2 weeks ago

Letter writing ,types and their examples in english grammer upsc state pcs class 12 10th

Letter writing • Introduction • Letter writing is an intricate task as it demands meticulous attention, still…

2 weeks ago

विश्व के महाद्वीप की भौगोलिक विशेषताएँ continents of the world and their countries in hindi features

continents of the world and their countries in hindi features विश्व के महाद्वीप की भौगोलिक…

2 weeks ago

भारत के वन्य जीव राष्ट्रीय उद्यान list in hin hindi IAS UPSC

भारत के वन्य जीव भारत में जलवायु की दृष्टि से काफी विविधता पाई जाती है,…

2 weeks 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