Hello World C Program In Dev C++

Hello World C Program In Dev C++ Rating: 4,4/5 3638 reviews

We start the tutorial series with one of the simplest programs that can be written in the C++ language.

Antares autotune 8 mac crack free. Antares Auto-Tune 7.6.8 Technical Setup Details. All with a user-interface that is a model of clarity, speed and ease-of-use.Features of Antares Auto-Tune 7.6.8Below are some noticeable features which you’ll experience after Antares Auto-Tune 7.6.8 free download.By far the most dramatic addition to Auto-Tune 7 is its entirely new time correction and manipulation system. Seamlessly integrated into the Graphical Mode interface, Auto-Tune 7’s time control capabilities allow you to quickly and easily edit the timing of your vocals right along with their pitch.Auto-Tune 7 also features the second generation of Antares’ Evo™ Voice Processing Technology, offering even more natural pitch shifting and throat modeling, along with a host of time-saving workflow enhancements. Software Full Name: Antares Auto-Tune 7.6.8.

May 29, 2011  i was trying to do a simple Hello world in C in Dev-C but it keeps on get a error. Here's is the code i used Code: #include int main. Aug 31, 2011 hello world dev c. Hello world dev c. Maddave Ho here I am again just trying to understand a bit of this software jargon can any one tell me why I cant compile. Mar 23, 2020 Hello, World! The main function is a mandatory part of every 'C' program. To use the functionality of a header file, we have to include the file at the beginning of our program. Every 'C' program follows a basic structure. Apr 16, 2020  in this video i will show you how you can write your first program of c in dev C this video is for educational purpose only plz subscribe my channel and hit the bell icon for updates.

The hello world program is one of the simplest programs, but it already contains the fundamental components that every C++ program has. Don’t be overwhelmed, we will take a look at the code line by line.

Type the code in your favorite editor (always type, don’t use cut/paste. This is better for learning purposes).
Save the program with the name: hello.cpp.

After saving the source code you can compile it. It should compile without any errors.

Note: Remember, the examples included in the C and C++ tutorials are all console programs. That means they use text to communicate. All compilers support the compilation of console programs. Check the user manual of you compiler for more information on how to compile them.
(It is not doable for us to write this down for every compiler).

// A hello world program in C++

The first line in our program is a comment line. Every line that starts with two slash signs ( // ) are considered comments and will have no effect on the behavior or outcome of the program. (Words between /* and */ will also be considered as comments (old style comments)). Use comments in your programs to explain difficult sections, but don’t overdo it. It is also common practice to start every program with a brief description on what the program will do.


Lines beginning with a pound sign (#) are used by the compilers pre-processor. In this case the directive #include tells the pre-processor to include the iostream standard file. This file iostream includes the declarations of the basic standard input/output library in C++. (See it as including extra lines of code that add functionality to your program).

Hello World C Program In Dev C Online

using namespace std;

All the elements of the standard C++ library are declared within what is called a namespace. In this case the namespace with the name std. We put this line in to declare that we will make use of the functionality offered in the namespace std. This line of code is used very frequent in C++ programs that use the standard library. You will see that we will make use of it in most of the source code included in these tutorials.

int main()

int is what is called the return value (in this case of the type integer. Integer is a whole number). What is used for will be explained further down.

Every program must have a main() function. The main function is the point where all C++ programs start their execution. The word main is followed by a pair of round brackets. That is because it is a function declaration (Functions will be explained in more detail in a later tutorial). It is possible to enclose a list of parameters within the round brackets.


The two curly brackets (one in the beginning and one at the end) are used to indicate the beginning and the end of the function main. (Also called the body of a function). Everything contained within these curly brackets is what the function does when it is called and executed. In the coming tutorials you will see that many other statements make use of curly brackets.

cout << “Hello World”;

This line is a C++ statement. A statement is a simple expression that can produce an effect. In this case the statement will print something to our screen.

cout represents the standard output stream in C++.
(There is also a standard input stream that will be explained in another tutorial). In this a sequence of characters (Hello World) will be send to the standard output stream (in most cases this will be your screen).
The words Hello World have to be between ” “, but the ” ” will not be printed on the screen. They indicate that the sentence begins and where it will end.

cout is declared in the iostream standard file within the std namespace. This is the reason why we needed to include that specific file. This is also the reason why we had to declare this specific namespace.

As you can see the statement ends with a semicolon (;). The semicolon is used to mark the end of the statement. The semicolon must be placed behind all statements in C++ programs. So, remember this. One of the common errors is to forget to include a semicolon after a statement.

return 0;

The return statement causes the main function to finish. You may return a return code (in this case a zero) but it depends on how you start your function main( ). We said that main ( ) will return an int (integer). So we have to return something (in this case a zero). A zero normally indicates that everything went ok and a one normally indicates that something has gone wrong. (This is standard practice. After running an UNIX/Linux program there is often a check on the return code).


As you can see the cout and the return statement have been indented or moved to the right side. This is done to make the code more readable. In a program as Hello World, it seems a stupid thing to do. But as the programs become more complex, you will see that it makes the code more readable. (Also you will make fewer errors, like forgetting a curly bracket on the end of a function).

So, always use indentations and comments to make the code more readable. It will make your life (programming life at least) much easier if the code becomes more complex.

Dev C++ Code Hello World

This entry was posted in C++ Tutorials. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! or use to share this post with others.
Comments are closed.