C sleep() Function Tutorial

The C programming language provides different functions which sleep() is one of them which is used to stop the current process or thread execution. The sleep() function is used to wait for a specified number of seconds, milliseconds, or minutes. Include uninstd.h Library In Linux Different C implementations provides different libraries in order to use … Read more

sizeof() In C Programming

How To Compare String In C?

C programming language provides the sizeof() function or operation in order to get the size of the specified variable, array, or object. The sizeof is very popular and used in different ways with different scenarios. The sizeof is very useful to get an object size in order to allocate required memory. sizeof() Syntax The sizeof() … Read more

How To Compare String In C?

How To Compare String In C?

C programming language provides the strcmp() function in order to compare strings. Strings are represented as character or char arrays in C. In this tutorial, we examine how to compare strings in C programming. strcmp() Function Syntax The strcmp() function syntax is like below. STR1 is the first string. STR2 is the second string. If … Read more

fmod() Function Tutorial In C++

fmod() Function Tutorial In C++

C++ programming language provides the fmod() function in order to calculate the remainder of a division. The fmod() returns the floating-point remainder of number/denom. The fmod() function is provided with the math.h header. fmod() Function Syntax The syntax of the fmod() function is like below. NUMER is the double or floating point numer which mod … Read more