Friday, March 28, 2014

Let us start C programming

Let us start C programming

This is done using Turbo C++ Ide. you can do the same with code blocks, microsoft visual studio ides also 

#include<stdio.h> //to include standard input output header file in which some keywords are defined
#include<conio.h>
void main()           //compiling starts with main() program
{
clrscr();     // all statement of c should be terminated with ;(semi colon)
 printf("Hallo World");   //used to send the data into output devices
 getch();   // to display the messages in screen
 }


If you are using Turbo C++, copy this program and open a notepad in your system(windows key+r, then type notepad in run window) and give a name with .c extension and save it in turbo c home folder

No comments:

Post a Comment