Tuesday, April 4, 2023

what is Programing language ? कंप्यूटर प्रोग्राम क्या होता है |

Level 1

 कंप्यूटर प्रोग्राम क्या होता है |
जैसा की हम सब जानते है की कंप्यूटर कोई भी काम अपने से नहीं करता है उस से काम को करवाने के लिए उसमे वर्क से रिलेटेड प्रोग्राम लिखना परता है और वो प्रोग्राम हम जिस लैंग्वेज में लिखते है वो लैंग्वेज को हम प्रोगरामिंग लैंग्वेज कहते है जैसे की   C , C++, Java , Fox-pro, .net etc 

तो आज हम  C Language के  बारे में जानेंगे 

what is C Language ?  C Language क्या होता है 

C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T (American Telephone & Telegraph), located in the U.S.A. Dennis Ritchie is known as the founder of the c language. It was developed to overcome the problems of previous languages such as B, B CPL, etc. c Language is case sensitive language .the extension c is   .c

Block Structure of C Language

                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


👉  Documentation Section  :- Documentation section is used for written the comment of the program i.e      what is the use of  this program. 

👉Link Section :- In this place we can declare   the Header file which is related to the C Program.

👉Definition Section :-  In this Place we can declare the Variable which is used in the program.

Global Declaration Section :-  when we declare the variable in this place we can used the variable in program in any place.

👉Main() Function Section :- Every program has been a main() function which is control the all activity in the program. main() function is responsible for the execution of the program.

👉{ Opening Parenthesis  :- when opening parenthesis is start in the program after main function that means now it ready for excute for the program.


Syntax of C Language  


#include<stdio.h>

#include<conio.h>

void main()

{

variable declaration

statement

  

write a simple program to print a welcome message


#include<stdio.h>

#include<conio.h>

void main()

{

Printf(" Welcome to my home");

getche();

}


 in this program #include<stdio.h> is a hedder file where #include is a precompiler of the c where maintion the property of the function. Printf funtion is a output function which is used fo output the message. 

when we write a program in c we need to compile it 

ALT + 9 :- For compile

CTRL+F9 :- For run the program .


turbo c , turbo c++ is also used for wirte a program in c Language.


No comments:

Post a Comment