The idea of programming might sound like a frightening task, but don’t worry. We designed this blog so that you can get your feet wet without stepping into the deeper complexities of the programming.
This Blog is dedicated to all those people who want to learn the most basic but important Programming Language'C Programming'.
If done step wise C language is easy and fun to learn.
So lets get started.
Start reading from the First Post to understand C programming.You may read a desired topic from the labels.
Press Ctrl+D to add this page to your Favourites/Bookmarks for further reference.
Note:Your comments,queries and suggestions are welcome.Feel free to post them in the the comment boxes available after every post.

Search C Programs,Compilers,etc.

Tuesday, April 29, 2008

A simple C program

Now lets start with a simplest C program in this post.
Read the program carefully and try to understand the meaning of each statement.

Sample Program:

/* Lets begin programming */
main()
{

printf("Hi people");

}


Explaination of the above program:

Every C program must start with the main()function.
The ';' is used as a statement terminator in C.
{ } marks the beginning and the end of a function.
/* */ encloses comments if any.
printf() is a C function for displaying variable or constant.

Sounds easy,rite?
Still any question post it to the comment box.I'll be happy to resolve them.

0 comments: