- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 7347 Articles for C++
40 Views
In this article we are going to discuss the iswxdigit() function in C++, its syntax, working and its return values.iswxdigit() function is an inbuilt function in C++ which is defined in header file. The function checks whether the passed wide character is a hexadecimal character or not. The function checks the if argument passed is hexadecimal character then return a non-zero integer value(true), else return zero(false).A hexadecimal character is any character which is among the following −0 1 2 3 4 5 6 7 8 9 A B C D E FSyntaxint iswxdigit(wint_t ch);The function accepts only one parameter, i.e. ... Read More
45 Views
In this article we are going to discuss the iswupper() function in C++, its syntax, working and its return values.iswupper() function is an inbuilt function in C++ which is defined in header file. The function checks whether the passed wide character is in upper case(A-Z) or not.This function is a wide character equivalent of isupper(), which means it works the same as isupper() the difference is it supports a wide character. The function checks the if argument passed is upper case(A-Z) then return a non-zero integer value(true), else return zero(false)Syntaxint iswupper(wint_t ch);The function accepts only one parameter, i.e. a wide ... Read More
107 Views
In this article we are going to discuss the iswspace() function in C++, its syntax, working and its return values.iswspace() function is an inbuilt function in C++ which is defined in header file. The function checks whether the passed wide character is a white space character or not.This function is a wide character equivalent of isspace(), which means it works the same as isspace() the difference is it supports a wide character. The function checks the if argument passed is a white space (‘ ‘) then return a non-zero integer value(true), else return zero(false)Syntaxint iswspace(wint_t ch);The function accepts only one ... Read More
64 Views
In this article we are going to discuss the iswpunct() function in C++, its syntax, working and its return values.iswpunct() function is an inbuilt function in C++ which is defined in header file. The function checks whether the passed wide character is a punctuation character or not. This function is a wide character equivalent of ispunct(), which means it works the same as ispunct() the difference is it supports a wide character. So, the function checks if the argument passed is punctuation character then return any non zero integer value(true), else it will return zero(false)Punctuation characters are as follows! ... Read More
158 Views
In this article we are going to discuss the difftime() function in C++, its syntax, working and its return values.difftime() function is an inbuilt function in C++ which is defined in header file. The function accepts two parameters of time_t type, function calculate the difference between the two timesSyntaxdouble difftime(time_t end, time_t beginning);Return valueReturns the difference of the time in seconds, stored as double data type.Example Live Demo#include #include int main () { time_t now; struct tm newyear; double seconds; time(&now); /* get current time; */ newyear = *localtime(&now); newyear.tm_hour = 0; newyear.tm_min ... Read More
27 Views
In this article we are going to discuss the isunordered() function in C++, its syntax, working and its return values.isunordered() function is an inbuilt function in C++ which is defined in header file. The function checks whether the two floating points number be NAN, if both or either one of them is NAN then it will return 1(true) else will return 0(false).Syntaxbool isunordered(float n1, float n2);orbool isunordered(double n1, double n2); orbool isunordered(long double n1, long double n2);The function accepts two floating point variables to compare and check if either one of these is nan.Return valueThe function return the boolean value ... Read More
2K+ Views
In this article we will be discussing the isinf() function in C++, its syntax, working and what will be its return value.isinf() is an inbuilt function in C++ which comes under header file, the function is used to check whether the variable passed in it is infinity or not, no matter if the number is negative infinity or positive infinity. If the number is infinite the function returns a non-zero value (true) and if it is not then it passes zero (false). Also if the number is NAN then also the function will return 0.Syntaxbool isinf(float n);orbool isinf(double n); orbool ... Read More
325 Views
In this article we will be discussing the working, syntax and examples of isfinite() function in C++.isfinite() is an inbuilt function in C++ which comes under header file. isfinite() function used to check and return whether the given number is finite or not, a finite number is any floating number which is neither infinite nor NaN (Not a number).Syntaxbool isfinite(float n);orbool isfinite(double n);orbool isfinite(long double n);This function include only 1 parameter n which is the value we have to check for whether it's finite or not.Return valueThe function returns boolean value, 0(false) if the number is not finite and 1(true) ... Read More
43 Views
Given the task is to show the working of fma() function in C++. In this article we will look into what parameters this function need and what results it will be returning.fma() is an inbuilt function of cmath header file, which accepts three parameters x, y and z and return the result x*y+z without losing the precision in any intermediate result.Syntaxfloat fma(float x, float y, float z);Ordouble fma(double x, double y, double z); Orlong double fma(long double x, long double y, long double z);Parametersx − The first element to be multiplied.y − The second element with which x is to ... Read More
765 Views
Given the task is to show the working of fread() in C++. In this article we will also look into the different parameters which are passed to fread() and what this function returns.fread() is an inbuilt function of C++ which reads a block of data from the stream. This function counts the number of objects each with the size of “size” bytes from the stream and stores them in buffer memory, then position pointer advanced by the total amount of bytes read. The amount of bytes read if successful will be size *count.Syntaxfread(void *buffer, size_t size, size_t count, FILE *file_stream);ParametersThis ... Read More