A parallel array is a structure that contains multiple arrays. Each of these arrays are of the same size and the array elements are related to each other. All the elements in a parallel array represent a common entity. Here, we provide the basic example to understand the parallel array in C++ − employee_name = { Harry, Sally, Mark, Frank, Judy } employee_salary = {10000, 5000, 20000, 12000, 5000} Here, The name and salary of 5 different employees is stored in two different arrays. Example of Parallel Arrays This is an implementation of a parallel array ... Read More
What is Harmonic Progression? A Harmonic Progression is a sequence of numbers formed by the reciprocal of an Arithmetic progression sequence. If a given sequence a1, a2, a3, a4... is in Arithmetic progression, then 1/a1, 1/a2, 1/a3, 1/a4... forms a Harmonic Progression. Formula for the nth term of Harmonic Progression? The formula for the nth term of a Harmonic Progression is: Tn = 1 / (1/a1 + (n - 1) * d) where: a1 is the first term of the Harmonic Progression. d is the common difference of the corresponding Arithmetic ... Read More
How to Add a Parameter for an Object in HTML The tag is used to define a parameter of an HTML element. The tag does not contain a closing tag. The tag supports all browsers, but the file format defined in an object may not support it. It also supports the global and event attributes in HTML. Below is the syntax − The tag is deprecated and is no longer recommended. While some browsers might still support it, it has been removed from the relevant web standard and is only maintained for ... Read More
To extract email addresses from Gmail Messages, you have to use google sheets also Apps Script for automation. Open a New google sheets and navigate to Extensions. Then, set up script that scan your mailbox and lists sender emails address in the google sheets automatically. Here's is step-by-step procedure to extract email addresses from Gmail messages is given follow these steps:- Step 1: Open Google Sheets Go to Google Sheets and create a new or Blank sheets. Step 2: Open Apps Script Click on Extension on clicking you will see many option among them select Apps Script. Step 3: ... Read More
In this article, we will learn how to deallocate a 2D array in C++. A 2D array is an array of arrays, where each element points to another array. When you dynamically allocate a 2D array, memory is reserved for each row and the main array on the heap. Deallocating memory means freeing the memory that was previously allocated for the 2D array so it can be reused. In C++, this involves deleting each row first and then deleting the main array. Deallocating a 2D Array in C++ In C++, a 2D array can be dynamically allocated in ... Read More
To write a JavaScript program for equilibrium index of an array, we are going to discuss three different approaches with detailed explanation and example codes. The equilibrium index of an array is the position where the sum of the elements to its left and right equals one another. In this article we are having an array of integers, our task is to to write a JavaScript program for equilibrium index of an array. Example Input: arr = [-7, 1, 5, 2, -4, 3, 0] Output: Equilibrium index: 3 At index 3, left sum = -7 + ... Read More
In this article, we will learn to print Hello World without a semicolon in C++. The semicolon (;) is used to terminate statements. The above can be achieved by using control structures like loops, conditionals, or function calls. Different Approaches There are multiple ways to write a C++ program without semicolons − Using if Statements Using a while Loop Using Switch Statement Note: Doing this is a very bad practice and should never be used in real code. This is presented just as informational content. ... Read More
What is Google Forms? Google Forms is a user-friendly tool used for creating surveys, quizzes and making forms quickly and easily. The key features of Google Forms include:- Free to use and customizable form: It's completely free and integrated with google workspace tools like google drive, Email as well as Sheets. You can create a form with multiple question types as per your need like multiple choice, checkboxes etc. Collects Responses: Responses are automatically collected and organized in google forms itself. Quiz mode: You can turn your ... Read More
Java Runtime Environment (JRE) JRE is a part of the Java Development Kit (JDK), which is responsible for executing a Java program. It acts as a mediator between the Java program and the OS. This allows the Java program to run on any system that has a compatible JRE installed. JRE contains components like JVM, class libraries, class loaders, and other libraries. Major Components of JRE Java Virtual Machine (JVM) JVM is the main component of the Java Runtime Environment. It performs the execution of the bytecode generated by the compiler and also serves as an interpreter, converting the bytecode ... Read More
In this article, we will learn about the difference between an array and a set in JavaScript. Arrays are used to store ordered collections of elements, whereas in Sets, we can store only unique values. What is an Array? An Array is an ordered, indexed collection of values in JavaScript. It allows duplicate values and provides various built-in methods to manipulate elements. Syntax let numbers= [1, 2, 3, 4, 5]; What is a Set? A Set is an unordered collection of unique values in JavaScript. Unlike arrays, a Set does not allow duplicate values. Syntax let numbers= new Set([1, 2, ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP