Tapas Kumar Ghosh has Published 226 Articles

Errors in C/C++

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 28-Jul-2025 15:15:22

13K+ Views

In C/C++, an error occurs due to an invalid operation performed by the user. The error normally stops the program execution until it is fixed. So, the error should be removed before compilation and execution. Types of Error in C/C++ Following is the list of errors occur in C/C++ programming: ... Read More

When to use inline function and when not to use it in C/C++?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 11-Jul-2025 17:48:27

2K+ Views

In C/C++, an inline function is a function where the compiler replaces the function call with the actual code of the function during compilation. So, this makes the program run faster than a normal function call. Why to Use Inline Function in C/C++? We should use an inline function in ... Read More

All pair combinations of 2 tuples in Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 11-Jul-2025 17:41:57

282 Views

Python tuples are immutable sequences that used to store collections of items. When working with two tuples, you may sometimes need to generate all possible pairs, where each pair contains one element from the first tuple and one from the second. In this article, we will learn different ways to ... Read More

Aligning table to X-axis using matplotlib Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 11-Jul-2025 17:35:10

2K+ Views

The Python Matplotlib library allows us to create visual plots from given data. To make the data easier to read and relate to the chart, we can display it in the form of a table and position it directly below the corresponding bar chart. Since the x-axis runs horizontally, ... Read More

Age Calculator using Python Tkinter

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 11-Jul-2025 17:34:00

2K+ Views

An age calculator in Python using Tkinter is a GUI (Graphical User Interface) application that allows users to determine their age based on their date of birth (DOB). To design the user interface of this application, we use various methods provided by the Tkinter library such as Tk(), pack(), Entry(), ... Read More

All possible concatenations in String List Using Python

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 11-Jul-2025 15:18:56

1K+ Views

All possible concatenations in a string list means to generate every possible combination of strings by concatenating two or more elements from a given list of strings. In this article, we are given a string list and we need to find all its possible concatenations. Following are the input-output scenarios ... Read More

C++ Program to Implement Sparse Array

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jul-2025 15:30:33

3K+ Views

What is Sparse Array?Sparse array is used to determines the dimension of an array in which most of the elements are zero. It can be used for matrix calculation. Characteristics of Sparse Array Following are list of points that defines the characteristics of a sparse array: ... Read More

What are the rules for calling the superclass constructor C++?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jul-2025 15:09:39

12K+ Views

In C++, a superclass serves as a base/parent class. When we create a derived class (or child class) from a superclass, sometimes we have to call the constructor of the base class along with the constructor of the derived class. Unlike Java, there is no reference variable for the superclass. ... Read More

What do you mean by a dynamic initialization of variables?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jul-2025 15:08:26

8K+ Views

Dynamic initialization of object refers to initializing the objects at run time i.e., the initial value of an object is to be provided during runtime. Dynamic initialization can be achieved using constructors and passing parameters values to the constructors. This type of initialization is required to initialize the class variables ... Read More

Read integers from a text file with C++ ifstream

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jul-2025 15:08:03

7K+ Views

In C++, we can read the integer values from text files using the ifstream class that allows the user to perform input operations from the files. Here, we have filename (tp.txt) that used in the program and store some integers value. 21 61 24 05 50 11 12 21 66 ... Read More

1 2 3 4 5 ... 23 Next
Advertisements