C Programming
C - Programming
Today we are learn about C programming language. this language founded by Dennis Ritchie.
- A program is made up of lots of statements .
- C program is run on the compiler , the mostly uses compiler is ' Turbo C ' .
- The format of the C program is as follows :
Header files
Main function
{
Statements
}
- In the Header files lots of statement is in the compress form .
- The header files we need is # include<stdio.h> .
- This header file is used for input and output statement .
- Every statement of C program is end with semicolon ;
- And every program is start and end with curly braces { }
First program we learn print your name on output screen
Now lets START .
Step : 1
First you need to Open your compiler
Type the following code in the compiler.
#include<stdio.h>
void main()
{
printf("Welcome to world of C Programming");
printf("Welcome to world of C Programming");
getch();
}
Step : 2
Now compile your program
To compile the program go to the compile menu and click on compile
OR
you can use shortcut keys press Alt + F9 on keyboard.
this compilation check your program error if any error is present the compiler show the error.
Step : 3
Now Run your program.
To run your program go to run menu and click on the run.
OR
press Ctrl + F9 on keyboard
Comments
Post a Comment