The Main() Function of C Language Contain Two Parts
(1) Declaration Part :
(1) Declaration Part :
- It declare various data types, variable and its values used in executable part.यह विभिन्न डेटा प्रकारों, परिवर्तनीय और निष्पादन योग्य भाग में उपयोग किए जाने वाले मूल्यों की घोषणा करता है।
- also declare Mathematical or logical operation. गणितीय या तार्किक ऑपरेशन भी घोषित करें।
(2) Executable Part :
- The Execution Part Consists of a Built – In Function Called printf(), scanf(), getch() | निष्पादन भाग में अंतर्निहित फ़ंक्शन होता है जिसे printf (), scanf (), getch () ...... कहा जाता है।
- All C Program must have At-least One Executable Part so the Output can be Displayed on The Output Device.|| सभी सी प्रोग्राम में कम से कम एक निष्पादन योग्य भाग होना चाहिए ताकि उत्पादन आउटपुट डिवाइस पर प्रदर्शित किया जा सके.|
- The Program execution starting at opening brace( { ) and ends at closing brace( } ).ब्रेस ({) खोलने और समापन ब्रेस (}) पर समाप्त होने पर प्रोग्राम निष्पादन शुरू होता है।
- All Statement in declaration part and executable part ends with semicolon( ; ).|| घोषणा भाग और निष्पादन योग्य भाग में सभी वक्तव्य अर्धविराम (;) के साथ समाप्त होता है।
Single main function, anywhere in the source code. Execution starts at the first statement in this function, and continues to the last statement.||स्रोत कोड में कहीं भी एकल मुख्य समारोह। इस समारोह में पहले कथन पर निष्पादन शुरू होता है, और अंतिम बयान जारी रहता है।
All C programs consist of one or more functions. As a general rule, the only function that must be present is called main( ), which is the first function called when program execution begins.सभी सी कार्यक्रमों में एक या अधिक कार्य होते हैं। एक सामान्य नियम के रूप में, एकमात्र कार्य जो उपस्थित होना चाहिए उसे मुख्य () कहा जाता है, जो प्रोग्राम निष्पादन शुरू होने पर पहला कार्य होता है।
Valid syntax :
#include <stdio.h>
void main()
{
Statement;
}
Character Set :
- C Language allows many characters and Symbols.
- A byte is used to hold a single character.
- A character is an individual symbol that displays on your screen. It could be:
- A lowercase letter: a, b, c, d, e, f, ……………z
- An uppercase letter: A, B, C, D, E, F, ………………. Z
- A digit: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9;
comma ( , ), semicolon ( ; ), period ( . ) querry ( ? ), exclaimation ( ! ), colon ( : ),plus ( + ), minus ( - ), asterisk ( * ), slash ( / ), backslash ( \ ), vertical bar ( | ), single quote ( ‘ ), double quote ( “ ),tild ( ~ ) , right parantheses ( ( ), left paranthese ( ) ), right bracket ( [ ),left bracket ( ] ), right brace ( { ), left brace ( } ), right angle bracket ( < ), left angle bracket ( > ), equal sign ( = ), ampersand ( & ), percent sign ( % ), pound sign ( # )caret ( ^ ), under score ( _ ).
- A White Spaces : Blank Space, New Line, Horizontal Tab
तो दोस्तों अगर आपको हमारा ऐ blog पसंद आया तो Like और Share जरूर करे।
stud21022@gmail.com
c सीखने के कार्यक्रम
ReplyDeleteएक रंग पैलेट नमूना उत्पन्न करें