Make First Program in C language.Step by Step guide to use Turbo C++ for first time

Hi this is our first program In C Language and it is simple and easy.

Step1.Open your turbo c++ compiler . 

 

Step2. Click on window then click on close all.



Step3. On top Right Click on File. then click on New.

 

Step 4. You are ready to make your first program in C.

Type this in your Turbo c++



#include<stdio.h>
#include<conio.h>
void main()
{
printf(“hi my name is AJ and this is my first program”);
getche();
}


now press ctrl+F9  and you are done .congratulations. you have made your first program successfully




Variations in above program:

In above program whatever you want to display on screen just type it between printf(" ").
for example: printf("hello")

and it will be displayed as it is. The basic function of Printf() is to display what you type between double quotes " "

Statement terminator: Semi colon ; terminates the statement of your program and it is known as statement terminator

Delimiters { }: Delimiters tells us that where the body of function begins and where it ends. example in above program this " { " tells that the body of function main is starting and this " } " tells us that here it ends.

Header Files #include<stdio.h> and #<conio.h> : stdio.h allows us to use important standard predefined functions such as printf() scanf() and conio.h allows us to use some other important functions like clrscr() to clear screen.


Note: C is case sensitive language if you type capital "P" in printf it will give error or if you forget to type semi colon ; in this case it will also give error. be careful when u do coding and follow its rules