Loops are a very important part of the programming languages. Loops are used to iterate over given collection, array, list, etc. There are mainly two types of loops named for loop and while loop. There are other types of loops but they can specially design for the specific programming languages....
A function is a basic element of the programming languages. The function is derived from mathematics where complex operations are summed and aggregated together for multiple use cases. In programming, languages function provides abstractions, simplicity, elegance for code which can be used multiple times with a simple call. Syntax Of...
Remote Procedure Call (RPC) is a protocol or architecture which is used to run programmes and code located another system in a computer network. Normally processes can call each other in the same local systems. RPC is used to call other processes on the remote systems like a local system....
C programming standard library provides strcmp() function in order to compare two strings and return the results whether they are identical or different. Syntax and Parameters As stated previously strcmp() function takes two char array or string arguments.
int strcmp (const char* str1, const char* str2);
const char* str1 is the first string or char array which will be...
Standard C library provides the fgets() function to read a line from a specified stream where stream can be a file. fgets() function also used to read the specified number or size of the characters from the given string. In this tutorial, we will learn the usage of fgets() function...
C library provides a lot of functions in order to use string or char array types. strchr() function is a very popular function which is used to find the first occurrence of a given character in a string or char array. Syntax and Parameters As strchr() provides the first occurrence of...
C and C++ programming languages provide rand() and srand() functions in order to create random numbers. Random numbers can be used for security, lottery etc. In this tutorial we will learn how to use a random number generating functions rand() and srand() with their attributes and specialties. Random Numbers Random numbers...
Linux provides a lot of opensource and free libraries to use operating system features easily. GNU is an opensource community which creates a lot of open source and free libraries. glibc is the short form of the GNU C Library. C Standard Library C programming language provides some standard libraries....
exec() function is a function used to create and run processes in operating systems Linux, Windows and MacOS. exec() function has different useful variants like execve() , execl(), execlp() , execle() etc. General Syntax There are a lot of different exec() function variants. Here are some of them syntax.
int execl(const char *path, const char *arg, (char *) NULL );
int execlp(const char *file, const char *arg, (char *) NULL );
int execle(const char *path, const char *arg, (char *) NULL, char * const envp );
int execv(const char *path, char *const argv);
int execvp(const char *file, char *const argv);
int execvpe(const char *file, char *const argv,char *const envp);