Hello दोस्तों! आज मैं आपको इस पोस्ट में Basic Structure of C programming हिंदी में बताऊंगा,
शुरू करने से पहले जान लेते हैं कि इस article में हम क्या-क्या cover करने वाले हैं.
- Characteristics of C
- Block Structure of “C” Programs
-
Layout Structure of “C” Programs
- Documentation section
- Link section
- Definition section
- Global declaration section
- main() Function Section
-
Contents
Opening Parenthesis ( { )
-
Executable Part:
-
Closing Parenthesis ( } )
-
Sub – Program Section:
तो चलिए शुरू करते हैं:-
Characteristics of C
Block Structure of “C” Programs
Documentation Section Link Section Definition Section Global Declaration Section Main() Function Section { Declaration Part Executable Part } Sub Program Section Function 1 Function 2 . . . Function n
Layout Structure of “C” Programs
1 /* Comment about the Program */ 2 Including The Header Files 3 Global Variables Declaration 4 Main() 5 { 6 Local Variables Declaration 7 Necessary Statements 8 } 9 Sub Program Functions Function 1 Function 2 ; Function n
Documentation section :-
Link section:-
Definition section :-
Global declaration section :-
main () Function Section:-
इस section मेंयह फंक्शन हर ”सी” प्रोग्राम में होता है । कम्पाईल करते समय Program Control हमेंशा सबसे पहले main() Function को ही ढूंढता है और इसी Function का Execution शुरू करता है। हर ”सी” प्रोग्राम में सिर्फ एक ही main() Function हो सकता है व हर ”सी” प्रोग्राम में main() Function का होना जरूरी होता है, क्योंकि Program का Execution हमेंशा main () Function से ही शुरू होता है।
Opening Parenthesis ( { ):-
main() Function मिलने के बाद प्रोग्राम का एक्जीक्यूशन इसी मंझले कोष्ठक से शुरू होता है। यानी Opening Parenthesis ही किसी भी User Defined Function की शुरूआत को Represent करता है।
Executable Part:-
यहां पर प्रोग्राम के वे सभी स्टेटमेंट्स होते हैं, जिनके द्वारा हम प्रोग्राम से कोई परिणाम प्राप्त करना चाहते हैं। यही वह भाग होता है, जहां से User के लिये Interface का काम शुरू होता हैं। सामान्यत: Function के Declaration Part से लेकर Function के Closing Curly Brace तक के हिस्से को ही Executable Part के रूप में जाना जाता है।
Closing Parenthesis ( } ) :-
प्रोग्राम में दूसरे मंझले कोष्ठक का प्रयोग वहां करते हैं, जहां पर प्रोग्राम या Function का अन्त करना होता है।
Sub-Program Section:-
Function 2;
…
…
Function n;
Note:- ये पोस्ट आपको कैसी लगी आप कमेंट कर के बताईये ! अगर आपको कुछ पूछना या अपनी राय देनी हो तो आप हमे कमेंट या ईमेल करके बता सकते है हम पूरी कोसिस करेंगे की आपका रिप्लाई जल्दी से जल्दी दे सखे ……….
इसे भी देखे:
Hello दोस्तों! नीचे दिए गए links पर click करके आपको हम इस पोस्ट में (Computer Online Test) की Practice कराएंगे जिससे आप अपने CCC, O level , कम्प्युटर GK की practice कर सकते है.
इस post के द्वारा आप अपनी कम्प्युटर की नॉलेज बड़ सकते है.
उसके साथ ही साथ आप अपने कई प्रकार के पेपरो की भी तैयरी भी कर सकते है.
जैसे की CCC, O level , कम्प्युटर GK की practice कर सकते है,
your this topic is very nice and you describe it very eassy and simply. i am effective it.
Thanks so much bro