Saturday 14 September 2013

Introduction to C programming

Introduction to C programming language:

In this c programming tutorial of shapes in C, we are going to give second C tutorial for beginners in which we gave introduction to C++. C++ is an intermediate language which comprises of both low level and high level features. It is a statically typed, compiled, generic and free form language. C language was developed by Bjarne Stroustrup and was originally named "C with classes" but renamed C++ in 1983.C++ is very close to your actual life. It's working is based in the nature of human being.

Scope:

C++ is a very popular programming language and is applied on a wide variety of hardware, software, websites and operating system platforms. It is also used in development of drivers, graphics programs, video games and high-performance server and client applications. The syntax and its mechanism has greatly influenced many languages like C# and Java.

Features:

C when upgraded to C++ got possession of many more important features. The loops concepts (do while, while, for, switch), arrays(static and dynamic), 2D, 3D and Multi Dimensional arrays, strings, function overloading, the concept of address with a symbol of '&', pointers, structs , unions, classes, operator overloading, virtual functions, inheritance, composition, ,polymorphism, templatization , exception handling, link lists, stacks, queue and many more are the important features of C++.

If-else conditions (controlled structures: selection):

Things like if else allows you to decide between conditions.

Loops (controlled structures: repetition):

Loops like while, for, do while and switch are used to finish the repetition.

Arrays:

Arrays are the storage units in which many variable are made and the values are stored. There are 1D, 2D and multi dimensional arrays.

Function overloading:

Function overloading are piece of codes with parameters in which variables or addresses are passed and thus that function executes. This decreases the length of code and makes easy to understand the code.

Pointers:

Pointers are the variables whose content is an address and it gives many facilities to a programmer like dynamic arrays.

Structs:

Struct is a heterogeneous data structure and it provides the facility of creating self defined variables of your own choice.

Classes:

A class is a collection of a fixed number of components and it has three parts public, private and protected. It is a concept of objet oriented programming. This is where you start privatizing your codes.

Inheritance:

It is a relationship where we inherit the information of base classes.

Polymorphism:

Polymorphism is the phenomenon which is the dynamic calling of functions.


Templatization :

It is the making of the dynamic codes which are applicable on all data types.

Final Words:

Our team of shapes in C classified all the detail of introduction to C++ and divided it into sections and then we gave little little detail in every section of c++ programming tutorials.

0 comments:

Post a Comment