Find ASCII Value of a Character in C++
In C++ programming, the value contained in a character variable is ASCII value, not the value itself. For example, consider a char type variable “chr”:chr = ‘A’
In C++ programming, the value contained in a character variable is ASCII value, not the value itself. For example, consider a char type variable “chr”:chr = ‘A’
In this tutorial, we will show you how to generate multiplication tables in C++. A user is asked to enter the number for which he/she wants to generate the table. Different logics are used to generate the table till 10.
In this tutorial, we will show how to check whether an entered year is a leap year or not in C++ programs.
In this short tutorial series of C++, we will show you how to check whether a number entered by the user is even or odd.
In C++, you may use built-in function pow() or write your own logic to get the exponent value. In this tutorial, we will show you different ways of calculating the exponents in C++.
sin() is the built-in function in C++. This function is defined in the
In this part of short tutorial series, we are going to show you how to get the quotient and remainder. As you execute the program, it asks to enter the dividend and divisor values.
You may use different ways for reversing a string in C++. This includes built-in functions that you may use quite easily and you write your own function as well.
The stoi() is the abbreviation of “string to an integer”.
As the full name suggests, stoi() is used to convert string to in C++
stoi() function was introduced in C++ 11
In this tutorial, we will show you ways of splitting a string by comma and space in C++.
There are different you can achieve this task.
– The Find function can be used by including
– The find function is used to search element in the given range of numbers.
– It takes three parameters – first, last, val
The double is among one of the available data types in C++ like float, int, char etc.
Double data type allows storing bigger floating point numbers (decimal numbers) than the float data type.
The char is a data type in C++
It is used to store single character
The character must be enclosed in single quote e.g. ‘a’, ‘b’, ‘5’
C++ out in cout refers to output. “cout” is an object of the ostream class. The header file where this is defined is iostream.
OR is a logical operator in C++. The OR is denoted by || (two pipe signs) and is used to evaluate two statements.