Skip to content

Tag Archives: C-Functions

nanosleep function in C is used to suspend the execution of the program for a specific amount of time for nanoseconds. The function can be… Read More
tolower() function in C is used to convert the uppercase alphabet to lowercase. i.e. If the character passed is an uppercase alphabet then the tolower()… Read More
getchar is a function that takes a single input character from standard input. The major difference between getchar and getc is that getc can take… Read More
Prerequisites:  Pointers in C Functions in C Passing the pointers to the function means the memory location of the variables is passed to the parameters… Read More
islower() function is used to check whether a character is a lowercase letter or not. It is a standard library function defined in the <ctype.h>… Read More
When declaring an array the array name is always called the pointer because in an array name the address of the 0th block(base address) is… Read More
In C, the putc() function is used to write a character to a given stream. It is a standard library function defined in the <stdio.h>… Read More
Functions are sets of statements that take inputs, perform some operations, and produce results. The operation of a function occurs only when it is called.… Read More
A user-defined function is one that is defined by the user when writing any program, as we do not have library functions that have predefined… Read More
User-defined functions in C language are defined by the programmer to perform specific operations. They are also known as “tailor-made functions” which are built only… Read More
sleep() function in C allows the users to wait for a current thread for a specific time. Other operations of the CPU will function properly… Read More
log2, log2f, and log2l are functions in C that compute the logarithmic of base 2 of a given number. They are part of the math.h… Read More
expm1(), expm1f(), expm1l() were introduced with C99, and are available under the <math.h> header file. These are used to calculate the Euler’s Number, e (2.7182818)… Read More
This function fcvt() converts the floating-point value to NULL-terminated ASCII string and returns a pointer to it. It is defined in the library function defined… Read More
The pthread_getcpuclockid() function returns the clock ID of the CPU-time clock from a specified thread. Syntax: int pthread_getcpuclockid (pthread_t id, clockid_t* clock_id); Parameters: This method… Read More

Start Your Coding Journey Now!