Here We can discuss about introduction to c language.
C language is one of most popular language in today’s programming language.
A program is a group of statements or set of instructions.
If we want to perform some task we can write some statements based on that find out the result.
So That in Computer have to introduces a some languages.
In 1960, The Cambridge university was introduced by programming language called BCPL (Basic Combined Programming Language) . It is also called a ‘B’ Language. After that ‘B’ Language was modified by “Dennis Ritchie” in 1972 at AT
&T Bell Lab’s. The New language named called ‘C’ language.
C language is used to mathematical, business and scientific environments. Every language supports some pre-defined functions and keywords. Using those functions and keywords we can write any type of program statements.
structure of c program
A simple structure of c program
main( )
{
statement1;
statement2;
statement3;
}
ex:
main()
{
clrscr();
printf(“welcome”);
getch();
}
main()
main() is special function used by C system. Every program statements written in only main block. Every statement end with a Semicolon ( ; ). Each program have only one main() function. When Execute the program process start from
main onwards.
clrscr()
This function is used for clear the previous output screen. Generally this function first line of the program statement. example
clrscr();
getch()
This function used to stop the output screen until user press any key from keyboard. Generally this function last line of the program statement.
Example
getch();
printf() :
printf() is predefined standared output function to print any message or result on the output screen. If we want to print between starting and ending quotation marks. The General syntax of printf() is :
Syntax:
printf(” message “);
ex:
printf(“Welcome”);
simple c programs
Find out simple c programs here.
#include <stdio.h>
#include <conio.h>
main()
{
clrscr();
printf(“Welcome to programming world”);
getch();
}
Output :
Welcome to programming world
introduction to c language,introduction to c language pdf,introduction to c programming language,introduction to c programming,
c language,introduction to c,introduction to c programming,c programming online course,introduction to c#,introduction to c++ programming