Wednesday, December 26, 2012

Hello World Using C Language : C Language Program Example

Hello World Program Using C Language : C Language Program Example
First step to learn any programming language is to understand the syntax and semantics of the language. Lets Start with the basic very first Hello World Program Using C Language.

Hello World Example Using C Language


#include <stdio.h>

#include <conio.h>
void main()
{
    clrscr();
    printf("Hello...");
    getch();
}



Now you may be thinking !!!!
* how to start program ? 
* where to write ? 
* how to execute ? 
* what's output of the program ?

Lets Discuss how to do so.

Which Program or Software is required for writing and executing C Program ?

Turbo C++ Editor
Check out the Link for More Details about Turbo C Compiler ( Link )

What's next step after writing C Program ?

For Compilation : Select Compile Menu -> Compile.
Or 
Press Alt + F9
When you compile your program you will receive message as follow:

Error : 0, Warning : 0.

How to Run C Program (Shortcut to Run C Program):

Select Run Menu -> Run Option
or
(Ctrl + 9)

Output of above Program(Hello World Using C Language) Will be:

Hello...

If you still have questions, you can post comment, we will try to solve your query.




Note: All programs are developed and tested using Turbo C++ 3.0 under Windows XP. We just want to provide guidelines to the users. If you are using any other Compiler or other operating system they you need to modify this program as per your requirements. 

1 comment:

  1. thank you for sharing nice article in your blog
    visit
    web tutorial programming
    https://www.welookups.com

    ReplyDelete