First program in C :

                                                           friends aj hum c ka pehla program run krenge. iske liye ap subse pehle Turbo C compiler download kar ke install kar le . phir  Turbo C per double click kre .

vo kuch esa khul jayega .

Iske bad  File per jayn or NEW pr click kre  . Phir vo esa dikhega .

Iske bad ap isme .

#include
Void main()
{
Printf(“hello”);
}

                               type kre 

isme  #include<stdio.h>

                                               ka matlab hum <stdio.h> header file ko is program me include kar rhe hai .jisme printf line ki puri coding likhi hoti hai .

void main()

                        is line ka matlab hai ki humara main program ab yhan se suru hone ja rha hai . Compiler sebse pehle main ()  method ko dekh ta hai . Kyoki wh sirf Main () kohi janta hai .
Phir hum pura program {  ( start curly bracesor  } (close curly braces) ke andar hi  likhna hai .

Printf() method kuch bhi print krane ke liye use hota hai .Or Hum ” (curly double open quot)  
”   (curly double close quot) ke ander jo bhi likenge vo vesha hi print ho jayega .  Or last me   ;  (semi-colon) lagana na bhule . 

How to save program (program ko save kese kre):

                                                                        Program ko ap F2 press kar ke nhi  to file me jakar save par click kar fir file ka name or uske bad last me .C extension se save kre .
                                                                                             (Example = first.c ) jesa app niche dekh skte hai .
Phir apne program ko compile karne ke liye apne keyboard se alt + F9  press kre .
 Phir uske bad jub compile ho jaye or usme koi error na ho to us program ko Run karne ke liye apne keyboard se ctrl + F9 press kre . 
Output dekhne ke liye window nam ke icon par jake output par click kar .

output :

  

Leave a Reply

Your email address will not be published. Required fields are marked *