C Storage Classes

Variables point to a memory location that has an address and a value stored. Other than this value, a variable also has a storage class. The C storage classes decide the characteristics of a variable during the execution of a program – the characteristics are storage location, initial value stored, scope, the lifetime of the … Read more

C Data Types

Data types are a very important concept in programming languages. You can choose the right kind of variable types for your program. The data types depend on the compiler which creates machine codes suitable for 16-bit or 32-bit processors. Sometimes when the processor has backward compatibility, then a 32-bit processor can run a 16-bit machine … Read more

C Variables And Constants

In a C program, some values do not change and some changes with the execution of the program. A constant never changes throughout the program and the variable changes frequently, hence the name. Types of Constants Constants can be classified into different types such as numeric constants and character constants. The following figure depicts the … Read more

C++ Program Structure

C++ is a very popular programming language. Every C++ program has a general structure that it must follow. Here is common structure of a C++ program. Header Section The header section is used for Including header files Declaring global variables Declaring functions Defining constants You can divide C++ functions into two categories – Builtin functions … Read more

C++ Private Member Function & Nested Functions

You have learnt about member functions earlier. We now expand the idea and talk about private member function and nesting of function in C++. A function declared inside the class’s private section is known as the “private member function”. A private member function is accessible through the only public member function. Data Members Data members … Read more

C++ File Stream Classes

File streams are the libraries which are utilized in programming. These use the iostream preferred standard library because it offers cin and cout strategies which are used for analyzing from the input and writing to the output respectively.  A file is a collection of associated data stored in a particular area on a disk. The … Read more

C++ Virtual Functions

In this article, you are going to learn about an important concept in C++ called the virtual functions and pure virtual functions. However, it is recommended that you learn about basics of pointer, classes and derived classes before reading further. What is Virtual Function?  A virtual function is a special type of member function that … Read more

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.