Wednesday, 19 December 2018

4.C Program Structure1

//welcome to c program     ||Comments //
#include<stdio.h>               ||Preprocessor (standard library)
 int age =10;                        ||Global declarations
void main()                         ||Datatype main(parameter list)
                                         ||{
    Statement1;                    ||     /*    Here your
    Statement2;                    ||                                                                     
   ...                                       ||            . program
   ...                                       ||
   ...                                       ||             . code     
   StatementN                   ||      */                                                                             
                                             || 
}                                           ||}                                             
                                                       
 
Comments:
      c language  में दो तरह से कमेंट दी जा सकती है |

  1.   Singal line comment: इस कमेंट की मदद से हम कोई एक लाइन में कमेंट दे सकते है | ("  //लाइन  ")
  2.   Multi  line comment  : इस कमेंट की मदद से हम एक साथ बहोत सारि लाइन में कमेंट दे सकते है |("  \*लाइनस  *\  ") 
Preprocessor:

  • It is first line of C Language Program.यह सी भाषा कार्यक्रम की पहली पंक्ति है।
  •  we can include more than one file in any program. हम किसी भी कार्यक्रम में एक से अधिक फाइल शामिल कर सकते हैं।
  •  we can include any standard C library or any other user define library.हम किसी भी मानक सी पुस्तकालय या किसी अन्य उपयोगकर्ता पुस्तकालय परिभाषित शामिल कर सकते हैं।
  • Tells the compiler include information about standard input/output library function. संकलक को मानक इनपुट / आउटपुट लाइब्रेरी फ़ंक्शन के बारे में जानकारी शामिल करता है।
  •  It also provide link between C Program and Standard Library. C यह सी कार्यक्रम और मानक पुस्तकालय के बीच भी लिंक प्रदान करता है
#Include :


The Name of the Source file must be Enclosed between Double Quotes or Angle Brackets.स्रोत फ़ाइल का नाम डबल कोट्स या कोण ब्रैकेट के बीच संलग्न होना चाहिए।
  1. #include "stdio.h"
  2. #include <stdio.h>
Both cause the Compiler to Read and Compile the Header for the I/O System Library Functions.दोनों संकलक I / O सिस्टम लाइब्रेरी फ़ंक्शंस के लिए शीर्षलेख को पढ़ने और संकलित करने का कारण बनते हैं
 तो दोस्तों अगर आपको  हमारा ऐ blog पसंद आया तो Like और Share जरूर करे। 
stud21022@gmail.com 

1 comment: