C++ keywords are the reserved words which are pre-defined in C++ programming language. We cannot use keywords as an identifier. Each keyword has a pre-defined meaning for C++ compiler.
In this tutorial we learn about basic input and output capabilities provided by C++ programming language. For Input and output, C++ programming language uses an abstraction called streams which are sequences of bytes. A stream is an abstract entity where a program can either write or read characters. It hides the hardware implementation and details from the C++ program.
Comments are added in C++ program for documentation purpose. Comments are explanatory statements that we can in our code to make it easy to understand for anyone reading this source code. We can add comments anywhere and any number of times in our programs. Adding comments in your code is highly recommended and is considered as a good programming practice. Comment are ignored by C++ compilers.
In this tutorial, we are going to learn about the basic structure of a C++ program. Let's first write a simple C++ program to print "Hello World" string on screen. This program is very useful to learn the basic syntax and semantics of the C++ language. It become the traditional first program that many people write while learning a new programming language.
The major difference between C and C++ is that, C is a procedural language whereas C++ is an extension of C which also supports object oriented programming paradigm. Following table highlights the major differences between C and C++ programming languages.