Monday, 19 September 2011

Some important key terms and definitions

Before I start, I request to pay attention to my words. In the entire blog, my aim is to make your concepts very sharp in C and C++ programming. And at the very begenning let me tell you that i will pay more attention to programs(practical skills), rather than theoritical part. I will try to teach and make your concepts clear usng different programs and different places.

And I promise you will enjoy this programming in C and C++ !!!


Variablesvariables are the words that are used in C and C++ programmingsimply to store input and output information which can be retrieved later in the program. They are declared with the help of a data type. The declaration of a variable or set of variables should be followed by a semi colon.

Data types: Datatypes are the words that defines the characterstics of any variable. As you know variable can be of many types such as interger type, decimal type, or character type. Similarly different datatypes are used to declare different variables.

For eg :  int a,b,c;
               float number ;

Here 'a','b', and 'c' are variables of interger type and 'number' is a variable of floating (number with decimal places).

ConstantsConstants are the terms in any program whose value remain fixed in the entire program. The best example for the constant is 'pi' whose value can be fixed in the entire program, i.e 3.14. You must remember how to declare such constant. See below :

# define pi 3.14

This is declared along with the inclusion of headerfiles.





No comments:

Post a Comment