Sunidhi Bansal has Published 1100 Articles

Count factorial numbers in a given range in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 08:49:16

269 Views

We are given the range starting from an integer value holded by a variable let’s say start till the variable end and the task is to count the total number of factorial numbers available in the given range.What is a factorial numberFactorial of a number is calculated by multiplying the ... Read More

Count even and odd digits in an Integer in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 08:45:56

2K+ Views

We are given with an integer number and the task is to count the even numbers and the odd numbers in a digit. Also, we will keep check on whether the even digits in an integer are occurring an even number of times and also the odd digits in an ... Read More

Count common characters in two strings in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 08:41:27

2K+ Views

We are given with the two strings let’s say str1 and str2 and the task is to find the count of common characters in two strings i.e. if str1[i] = str[j], then they will be considered as a pair and count will increased to 1 and if str1[i]!=str2[j] then they ... Read More

Convert characters of a string to opposite case in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 08:30:17

477 Views

We are given a string of any length and the task is to convert the string having uppercase letters to lowercase letters and lowercase letters to uppercase letters.For ExampleInput − string str = ”Welcome To The Site!”Output − wELCOME tO tHE sITE!Explanation − converted the letters W, T, T, S to lowercase and ... Read More

Convert distance from km to meters and centimeters in PL/SQL

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 08:27:43

409 Views

The task is to convert the distance from kilometers to meters and centimeters in PL/SQL.PL/SQL is the extension of SQL which combines the Data manipulation of SQL with the working of procedural language.According to the problem we should have distance in kilometers whose value we have to convert in meters ... Read More

List in C++(4.5)

Sunidhi Bansal

Sunidhi Bansal

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

72 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

174 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

347 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

501 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

Advertisements