Revathi Satya Kondra has Published 101 Articles

Return from void functions in C++

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 10-Jun-2025 13:16:07

18K+ Views

The void functions are called void because they do not return anything. "A void function cannot return anything" this statement is not always true. From a void function, we cannot return any values, but we can return something other than values. Some of them are like below. A void function ... Read More

Exception handling and object destruction in C++

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 10-Jun-2025 13:11:44

874 Views

In this article, you will learn what is exception handling, object destruction, and Handing exception thrown in Object Destructor in C++. C++ Exception Handling An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while ... Read More

Merge contents of two files into a third file using C

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 30-May-2025 17:52:18

1K+ Views

In C language, file handling is used for various file actions such as to write, read, merge, etc. Merging Contents of Two Files into a Third FileTo merge the contents of two files into a third file, you need to open the first two files (whose content will be merged ... Read More

Conversion constructor in C++?

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 30-May-2025 17:36:12

866 Views

In C++, a conversion constructor is a special type of constructor that takes only one argument. It enables automatic type conversion from the argument's type to the class type. When an object of the class to be created from a single value(int). then the compiler will call the conversion ... Read More

Data type of character constants in C and C++

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 30-May-2025 17:31:42

1K+ Views

The character constant is a constant that is enclosed in a single quote (' '). It represents the integer value (i.e., ASCII) of the character. In C programming language, the data type of character constant is an integer (represented by int) and it needs 4 bytes to store a character ... Read More

Line Splicing in C/C++

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 30-May-2025 17:16:26

609 Views

In C/C++, Line splicing is a small feature that lets you split one long line of code into two lines by using a special symbol that is the backslash (\).Line splicing is a preprocessor feature, not a function or method. It does not have any parameters. But it simply affects ... Read More

What is the size of a pointer in C/C++?

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 27-May-2025 17:14:33

10K+ Views

The size of a pointer in C/C++ is not fixed. It depends upon different issues like Operating system, CPU architecture etc. Usually it depends upon the word size of underlying processor, for example for a 32 bit computer the pointer size can be 4 bytes and for a 64 bit ... Read More

C++ Program to Implement Array in STL

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 27-May-2025 17:06:54

548 Views

An array is a collection of elements of the same type such as integers, string, etc. Array in STL In C++ Standard Template Library (STL) , we use std::array container to create arrays with a fixed size. the size cannot be changed once created. It works like a normal array ... Read More

Passing a vector to constructor in C++

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 26-May-2025 17:24:41

1K+ Views

In C++, you can pass a std::vector to a class constructor to create a list of values when the object is created. So that the object can store or work with a list of values right from the beginning. Why do You Pass a Vector to a Constructor? ... Read More

Functors in C++

Revathi Satya Kondra

Revathi Satya Kondra

Updated on 26-May-2025 16:50:30

372 Views

The functors are the function objects in C++. The functor allows an instance object of some class to be called as if it were an ordinary function. Let us consider a function that takes one argument. We can use this function as function object to do some task on a ... Read More

Advertisements