Sunidhi Bansal has Published 1100 Articles

logical_and in C++

Sunidhi Bansal

Sunidhi Bansal

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

63 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

39 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

125 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

Last element of vector in C++ (Accessing and updating)

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:36:36

535 Views

In this article, we will be discussing the ways of accessing and updating the last element of a vector in C++.What is a vector template?Vectors are sequence containers whose size is changed dynamically. A container is an object that holds data of the same type. Sequence containers store elements strictly ... Read More

remainder() in C++ program

Sunidhi Bansal

Sunidhi Bansal

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

231 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

10K+ 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

ratio_not_equal() in C++ with examples

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:29:20

72 Views

In this article, we will be discussing the working, syntax, and examples of ratio_not_equal template in C++ STL.What is ratio_not_equal template?ratio_not_equal template is inbuilt in C++ STL, which is defined in header file. ratio_not_equal is used to compare the two ratios that are unequal. This template accepts two parameters ... Read More

ratio_equal() in C++ with example

Sunidhi Bansal

Sunidhi Bansal

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

182 Views

In this article, we will be discussing the working, syntax, and examples of ratio_equal() function in C++ STL.What is ratio_equal template?ratio_equal template is inbuilt in C++ STL, which is defined in header file. ratio_equal is used to compare the two ratios. This template accepts two parameters and checks whether ... Read More

stack top() in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:25:00

7K+ Views

In this article, we will be discussing the working, syntax, and examples of stack::top() function in C++ STL.What is Stack in C++ STL?Stacks are the data structure that stores the data in LIFO (Last In First Out) where we do insertion and deletion from the top of the last element ... Read More

stack swap() in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 22-Apr-2020 12:23:19

281 Views

In this article, we will be discussing the working, syntax, and examples of stack::swap() function in C++ STL.What is Stack in C++ STL?Stacks are the data structure that stores the data in LIFO (Last In First Out) where we do insertion and deletion from the top or the last element ... Read More

Advertisements