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.