Sunidhi Bansal has Published 1085 Articles

Elements present in first array and not in second using STL in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:50:32

187 Views

We have two arrays, the task is to compare the two arrays and find the numbers present in first array but not in the second array, using Standard Template Library (STL) in C++.ExampleInput: array1[ ] = {1, 2, 3, 4, 5, 7} array2[ ] = {2, 3, 4, 5, 6, ... Read More

Forward list assign() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:48:14

284 Views

Given is the task to show the working of forward_list assign() function in C++.A forward_list only keeps linkage with the next element unlike normal list that keeps linkage with the next as well as the preceding elements, which helps iterations in forward as well as backward directions. But forward_list can ... Read More

Const cast in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:47:46

7K+ Views

Given the task is to show the working of const_cast in C++.const_cast is one of the type casting operators. It is used to change the constant value of any object or we can say it is used to remove the constant nature of any object.const_cast can be used in programs ... Read More

const_cast in C++ - Type casting operators

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:38:45

2K+ Views

Given the task is to show the working of const_cast in c++.const_cast is one of the type casting operators. It is used to change the constant value of any object or we can say it is used to remove the constant nature of any object.const_cast can be used in programs ... Read More

clocale header file in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:33:16

275 Views

Given the task is to show the use of header file in C++.The header file is a part of the localization library which further is a part of the C++ standard library. Originally it was in the C standard library with the name as .The functions and declarations ... Read More

cosh() function for complex number working with C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:32:37

153 Views

Given the task is to show the working of cosh() function for complex numbers in C++.The cosh() function is a part of the C++ standard template library. It is a little different from the standard cosh() function. Instead of calculating the hyperbolic cosines of angles that are in radians, it ... Read More

Cos() function for complex number in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:28:27

247 Views

Given the task is to show the working of cos() function for complex numbers in C++.The cos() function is a part of the C++ standard template library. It is a little different from the standard cos() function. Instead of calculating the cosine of simple integral or rational numbers, it calculates ... Read More

Copysign() function in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:27:50

112 Views

Given the task is to show the working of copysign() in C++.The copysign() function is a part of the C++ standard template library. It takes two arguments and produces the result by combining the magnitude of the first value and the sign of the second value. or header file ... Read More

list emplace() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:26:29

616 Views

Given is the task to show the working of list emplace() function in C++.The list::emplace() function is a part of the C++ standard template library. It is used to insert values inside a list at a specified position by the user. header file should be included to call this function.SyntaxList_Name.emplace(position, ... Read More

List assign() function in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 07:22:18

2K+ Views

Given is th e task to show the working of the assign() function in C++.The list::assign() function is a part of the C++ standard template library. It is used to assign the values to a list and also to copy values from one list to another. header file should be ... Read More

Advertisements