Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C Basics C-Storage Classes and Type Qualifiers

Storage Classes in C

Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace...

C Storage Classes and Type Qualifiers

1234 C Storage Classes and Type Qualifiers Please wait while the activity loads. If this act...
C C++ CPP-Library

C++ String Class and its Applications Set 2

We have discussed String class and some of its functions in below set 1. C++ string class and its applications | Set 1 More functions are discussed in this article St...
C C++ cpp-array

How to create a dynamic 2D array inside a class in C++ ?

Suppose we want to create a class for Graph. The class stores adjacency matrix representation of the graph. Therefore, our class structure would be something like b...
C C++ School Programming

C++ string class and its applications

In C++ we can store string by one of the two ways – C style strings string class (discussed in this post) In this post, second method is discussed. strin...
C++ School Programming C Basics

C++ Classes and Objects

Class: The building block of C++ that leads to Object Oriented programming is a Class. It is a user defined data type, which holds its own data members and member fu...
C++ CPP

Can a C++ class have an object of self type?

A class declaration can contain static object of self type, it can also have pointer to self type, but it cannot have a non-static object of self type. For example,...
C++ Difference Between CPP

Structure vs class in C++

In C++, a structure is the same as a class except for a few differences. The most important of them is security. A Structure is not secure and cannot hide its impleme...
C C++ C

Why is the size of an empty class not zero in C++?

Predict the output of following program? #include<iostream> using namespace std;    class Empty {};    int main() {  &#x...
C++ CPP

Nested Classes in C++

A nested class is a class which is declared in another enclosing class. A nested class is a member and as such has the same access rights as any other member. The me...

Subscribe to Our Newsletter