Register | Sing In

New posts

Stacks in C programming Linked Lists in C programming File Input/Output in C programming Check prime numbers in C Programming C Programming Enumeration C Programming Union

Archives

2013-10 2013-09 2013-08

C Hello World using Dev C++

August 9, 2013 Posted by: GPA Views: 1235 0 comments

Task

How to write simple program in C?

Solution

We begin a simple C program. Our first example prints a line of text "Hello World".

For this we will use Dev C++. Follow us step by step and you will write your first simple program in C.

1. Open Dev C++; 

2. Go to file->New->Project; 

3. Select some folder and save project; 

4. Write next code:

     
      
#include <stdio.h>
//function main begins program execution
int main(int argc, char *argv[])
{
printf( "Hello world" );//show our text Hello world
system("PAUSE");
return 0;//indicate that program ended successfully
}

5. Press button F9 and for debugging.

Output:

0 Comments...

Leave a Reply

Please, Sing In to leave a Reply for this material.



Online Chat

LiveZilla Live Help

Popular posts

Function strtok in C programming Check prime numbers in C Programming C Programming Union Linked Lists in C programming File Input/Output in C programming C Programming Enumeration

RSS-subscribe

New materials

Subscribe