Linux operating System

 

What do you think Linux operating system is?

  • It is a operating system just like Window,Mac .’
  • Linux is a generic term referring to Unix-like graphical user interface (GUI) based computer operating systems
  • It is Multi-user, Multitasking, Multiprocessor.
  • Coexists with other Operating Systems
  • Runs on multiple platforms.

Advantages of Linux Operating System.

Read moreLinux operating System

Operator Overloading in C++

 

 

Like Function Overloading C++ also support the Powerful  concept of Operator overloading.Few  operators in C++ such as +,-,++,>,<,<== etc. works on Build in Data types i.e primitive data types such as  (int,char,float) that means we can directly add two integers numbers  or two float numbers .


For Example

int a,b,c;

c=a+b;


Here addition operation is performed on two operands a and b of integer data type .But what if i wants to add two user defined variables. In order to add or compare or to perform any operation on user defined data type , the concept of OPERATOR OVERLOADING is used. When two basic type operands  are added operator overloading takes place but it takes place implicitly.But in-order to perform any operation on user defined datatypes operator overloading is done Explicitly.

Read moreOperator Overloading in C++

Constructors and Destructors in C++

Constructors in c++.

Constructor is a special member function which is having same name as classname which is used to automatically initialze data members to some values when an object of the class is created.A constructor could be invoked directly when  an object of the class is created. There is no need to call constructor explicitly.

Before starting constructors in detail, lets   discuss a short example.

Read moreConstructors and Destructors in C++

Focusing on strings in C++ and Operation on strings

Focusing on strings in C++.

Declaring and Initializing Different type of Strings:

Focus:String is nothing but just a sequence/Array  of characters,like “hello !! hope you are good well”.Basically C++ includes concepts of both C and C++ also.

Read moreFocusing on strings in C++ and Operation on strings

Core c++ concepts of Pointers

Pointer to  Function.

As we use pointer to carry address of variable,also we discussed  pointer to array ,where we assigned pointer to array(pointer pointing to first address of array), similarly pointer can also be used to point to  function by carrying address of the function it points.

Declaration of Function Pointer


data_type(*ptr_name)(arg_list)


data type: data type /return type of member function.

*ptr name: name of the pointer which is pointing to function.

arg_list: List of arguments that function is having.

Read moreCore c++ concepts of Pointers

Pointers and Array

FOCUSING ON ARRAY AND POINTERS 

Abstract overview of this blog:Pointers and Array:

Here we will be discuss  Arrays first rather than starting up with pointers to array .I will give you a brief introduction of Array its declaration ,definition and few programs of Array.Once you are familiar with Array,we will proceed further to Array using pointers .

Read morePointers and Array

Pointers

Introduction to Pointers

As we all know every variable in C++ has a name and a value.So when we declare a variable , a specific block of memory is allotted to hold its value.Also the size of that variable depends upon the data type  of that variable.


for ex: int a=10;

here variable a is of integer data type and its value is 10 .


Read morePointers