fgetc() fgetc() is used to obtain input from a file single character at a time. This function returns the ASCII code of the character read… Read More
Tag Archives: CPP-Library
fseek() is used to move file pointer associated with a given file to a specific position. Syntax: int fseek(FILE *pointer, long int offset, int position)… Read More
ftell() in C is used to find out the position of file pointer in the file with respect to starting of the file. Syntax of… Read More
In mathematics and computer science, the floor and ceiling functions map a real number to the greatest preceding or the least succeeding integer, respectively. floor(x)… Read More
List has been discussed in many articles, but the sole purpose of this article is to cover all types of insertions that are possible to… Read More
strftime() is a function in C which is used to format date and time. It comes under the header file time.h, which also contains a… Read More
These are four important built-in functions in GCC compiler: 1. __builtin_popcount(x) This function is used to count the number of one’s(set bits) in an integer. Example: … Read More
This article demonstrates some of the inbuilt functions that can be used to query and manipulate array types, even a multidimensional array. These functions can… Read More
fork() is used to create a child process. This child process is a copy of the original(parent) process. It is the primary method of process… Read More
The strdup() and strndup() functions are used to duplicate a string. strdup() : Syntax : char *strdup(const char *s); This function returns a pointer to a null-terminated byte… Read More
We introduced and discussed the concept in Complex numbers in C++ | Set 1The remaining functions with example are discussed here: log() – It is… Read More
The complex library implements the complex class to contain complex numbers in cartesian form and several functions and overloads to operate with them. real() –… Read More
<chrono> is a C++ header that provides a collection of types and functions to work with time. It is a part of the C++ Standard… Read More
C++98 introduced a special container called valarray to hold and provide mathematical operations on arrays efficiently. It supports element-wise mathematical operations and various forms of… Read More
memset() is used to fill a block of memory with a particular value. The syntax of memset() function is as follows : // ptr ==>… Read More