Object files contain the binary information which is generated by either assembler or linker. In Linux object files are in Executable and linkable file format (.elf). In general, we have three types of object files in Linux(i.e. .c file). They…
What are a bit, Nibble and Byte? Computer memory is an electronic chip that consists of millions of transistors and capacitors. A transistor and a capacitor are paired to create a memory cell that stores one bit of data. Such…
We can easily convert a string to a date object using the function Date(). It accepts the string in different formats. For example: We can pass the year, month, and day separately such that it automatically creates the date object…
What is an expression? An expression contains both operators and operands. Example: a = b + c; We can say, both “b + c” and “a = b + c” are expressions. Every expression will produce a result that can…
Introduction to C language History of C language Structure of a C program Compiler What is a compiler? Install C compiler in windows. Install C compiler in Linux with WSL. Compilation process of a C program C program to print…
After clicking on an and if you want to bring the image into view using the following script. We have a method called scrollIntoView which is supported by all the major browsers that align an element automatically with the top/left…
This can be done easily using Regular expressions. Following is the sequence of steps to be done: Let’s write a function in JS that takes a title as an input and returns the URL slug as an output.
In this article, we will see how to convert a string to a template string in JavaScript. let’s consider an example In the above example, I wanted to process the string in x as a template string such that the…
To click on a link programmatically in the javascript you can just use an element.click() To get the element use document.getElementByID(‘id’). Please refer to the following code pen for an example of how to programmatically perform the click operation on…
In this article, we will see how to synchronize two threads using the mutex and conditional variables. We will use the following APIs from the pthread library We will be writing a simple example program that has two threads in…