Sunidhi Bansal has Published 1078 Articles

isprint() Working with C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:15:22

397 Views

Isprint() in C++ is inbuilt function in “cctype.h” header file which checks whether the character is printable or not.Isprint returns true for constant cases as Isprint aside from the house character (' '), that returns true.A locale-specific model version of this function (Isprint) exists in cctype header file.-Isprint() function can ... Read More

forward_list emplace_after() and emplace_front() in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:13:50

237 Views

Given is the task to show the working of forward_list::emplace_after() and forward_list::emplace_front() functions 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 both directions. But forward_list can only iterate in ... Read More

forward list::cend() in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:06:48

193 Views

Given is the task to show the working of forward_list::cend functions 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 both directions. But forward_list can only iterate in the forward ... Read More

forward_list::cbefore_begin() in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:06:22

143 Views

Given is the task to show the working of forward_list::cbefore_begin() 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 both directions. But forward_list can only iterate in the forward ... Read More

forward_list cbegin() in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Jan-2020 10:02:37

131 Views

Given is the task to show the working of forward_list::cbegin() 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 both directions. But forward_list can only iterate in the forward ... Read More

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

213 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

309 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

300 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

Advertisements