Introduction to C language

category:  Programming Fundamentals Table of Contents 1.Types of languages 1.1.Machine Language 1.2.Assembly language 1.3.High level languages ‘C’ is a general purpose, Structured Programming language. It is suitable for solving scientific and engineering problems as well as for business application. Over the past few years, C has become the most popular computer programming language. C’s speed … Read more

C++ Programming guidelines

category:  Programming Fundamentals This article contains some major guidelines which you can call a collection of Tips and suggestions for C++ programming. First think, draw it on paper, create designs how your program will work, then code. Even a well written program can encounter bugs but If you belive in the first step then it … Read more

Pointers in C++

category:  Programming Fundamentals Table of Contents 1.Pointers Declaration 2.Pointers Definition 2.1.Pointer to Character program Computer memory comprises of bytes (8bits). Each and every byte of memory has an address associated with it or put it this way that each byte has a number that is called the address of the byte. We can say that … Read more

Types of Inheritance in C++

category:  Programming Fundamentals Table of Contents 1.Types of Inheritance in C++ 1.1.1. Private inheritance 1.1.1.For example 1.2.2. Public inheritance 1.2.1.For example 1.3.3. Protected inheritance 2.Inheritance guidelines 3.Conclusion of access specifiers 4.Conclusion of Inheritance There are three types of inheritance in C++.   Private inheritance   Public inheritance   Protected inheritance The access specifier private is not … Read more

Objects in C++

category:  Programming Fundamentals Table of Contents 1.Declaring objects 2.Difference between class and object 3.Different methods of declaring member functions 3.1.The general format 3.1.1.Program Example An object has two parts, one is a data that it remembers and the second one is the action that it can perform. Once it is all set that how it … Read more

Access Specifiers in C++

category:  Programming Fundamentals Table of Contents 1.Private 1.1.Program Example 2.Public 2.1.Program Example 2.2.Run Output 3.The use of specifiers As we know that there are three types of access specifier that is Private, Public and protected. we have discussed “Protected” access specifier here. Private The visibility of the Private access specifier is limited to only for … Read more

Classes in C++

category:  Programming Fundamentals Table of Contents 0.1.Program Example 0.2.Run output C++ is capable to provide not only the predefined classes but also the user-defined classes. Programmers can instantiate these classes any number of times. It contains two areas of declaration, one is called data member area and the other one is called the member function … Read more

Function Overloading in C++

category:  Programming Fundamentals Table of Contents 1.Function Overloading Program Example: 1.1.Run Output 2.Program Example: 2.1.Run Output 3.Program Example: 3.1.Run output “Overloading is the reuse of the same function name or symbol for two or more distinct functions or operations”. Function overloading is the general concept of c++. A function can be declared more than once … Read more

Inline Function Advantages

category:  Programming Fundamentals Table of Contents 1.When to use inline function: 2.  3.When not to use inline function: 3.1.Conclusion: When to use inline function: The inline function means expansion of a function call that is the function code is integrated (copy and paste) into the caller’s code. It is purely dependent on the compiler whether … Read more

Inline Functions in C++

category:  Programming Fundamentals Table of Contents 1.General Format of Inline Functions: 1.1.Program Example: 1.2.Run OutPut: Functions in “C” and “c++” programs are used to avoid repeated block of code. It also helps the programmer in readability and maintainability. As we also know that calling a function takes time when it jumps from the position in … Read more