C++ sin() function [3 Examples]

CPP-sine-negative

sin() is the built-in function in C++. This function is defined in the library – you have to include this in the header in order to use it. The sin() function takes one argument i.e. a number which is angle and it returns the sine of angle x radians.

C++ char Data Type

CPP-char-get-ASCII

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’