Sunidhi Bansal has Published 1085 Articles

List in C++(4.5)

Sunidhi Bansal

Sunidhi Bansal

Updated on 24-Apr-2020 12:15:00

154 Views

List are the type of containers that stores data in sequential manner and allocate noncontiguous memory to the elements. In C++, lists are considered as doubly linked list where insertion and deletion of elements can be done from both the ends and therefore, it is also possible to traverse the ... Read More

Functions in C/C++(3.5)

Sunidhi Bansal

Sunidhi Bansal

Updated on 24-Apr-2020 11:55:57

248 Views

Functions are like a machine as they perform some functionality and produces a result of some type. Like, machine takes some input, process that input and produce an output similarly, function takes some value, operates on those value and produces the output. Manually a person passes the input to the ... Read More

Stack in C++ STL(3.5)

Sunidhi Bansal

Sunidhi Bansal

Updated on 24-Apr-2020 11:55:29

441 Views

In C++ STL, stack is used as container which is implemented as LIFO structure. LIFO means Last In First Out. Stack can view as a pile of books in which the books are arranged one above the another and the last inserted book will be the first one to be ... Read More

Raw string literal in C++ program

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:47:24

618 Views

In this article, we will be discussing the raw string literal in C++, its meaning, and examples.There are escape characters in C++ like “” or “\t”. When we try to print the escape characters, it will not display on the output. To show the escape characters on the output screen ... Read More

Modulus function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:44:17

3K+ Views

In this article, we will be discussing the working, syntax, and examples of modulus functions in C++.What is modulus function C++?modulus function object class in C++, which is defined in header file. modulus function is a binary function object class used to get the result of the modulus operation ... Read More

logical_and in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:42:28

120 Views

In this article, we will be discussing the working, syntax, and examples of logical_and function object class in C++.What is logical_and?logical_and binary function is an inbuilt binary function object class in C++, which is defined in a header file. logical_and is a binary function used to give the result ... Read More

ilogb() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:40:37

93 Views

In this article, we will be discussing the working, syntax, and examples of ilogb() function in C++.What is ilogb()?ilogb() function is an inbuilt function in C++ STL, which is defined in iostream> using namespace std; int main(){    int output, var = 2;    output = ilogb(var);    cout

imag() function in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:38:43

231 Views

In this article, we will be discussing the working, syntax, and examples of imag() function in C++.What is imag()?imag() function is an inbuilt function in C++ STL, which is defined in header file. imag() is used to find the imaginary part of the complex number.A complex number is a number ... Read More

remainder() in C++ program

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:34:10

335 Views

In this article, we will be discussing the working, syntax, and examples of remainder() function in C++.What is remainder()?remainder() function is an inbuilt function in C++ STL, which is defined in header file. remainder() is used to find the remainder of the parameters.This function takes two arguments, one for ... Read More

rand() and srand() in C/C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:32:02

11K+ Views

In this article, we will be discussing the working, syntax, and examples of rand() and srand() function in C++ STL.What is rand()?rand() function is an inbuilt function in C++ STL, which is defined in header file. rand() is used to generate a series of random numbers. We use this ... Read More

Advertisements