# Recent Articles

#### C Program to Check Whether a Number is Even or Odd

In this article, we will write a C program to check whether a given number is even or odd. The ...

#### C Program to Check Whether a Number is Prime or Not.

In this article, we will write a C program to check whether a given number is a prime number or ...

#### C Program to Find the Cube of a Number

In this article, we will write a C program to find the cube of a number. The program takes a ...

#### C Program to Find the Sum of Natural Numbers Using Recursion

In this article, we will write a C program to find the sum of natural numbers with the help of ...

#### C Program to Find the Range of Data Types

In this article, we will write a C program to find the range of different built-in data types. The range ...

#### C Program to Find the Most Frequent Element in an Array

In this article, we will write a C program to find the most frequent element in an array. A most ...

#### C Program to Find the Average Marks of 5 Different Subjects

In this article, we will write a C program to find the average marks of a student in 5 different ...

#### C Program to Print the Elements of an Array Using Recursion

In this article, we will write a C program to print the elements of an array using recursion. The program ...

#### C Program to Print Array Elements Using Pointers

In this article, we will write a C program to print array elements using pointers. The program first takes the ...

#### C Program to Find all Unique Elements in an Array

In this article, we will write a C program to find all the unique elements in an array. Given an ...

#### C Program to Insert an Element at the Beginning of an Array

In this article, we will write a C program to insert an element at the beginning of an array. We ...

#### Python Program to Find the Largest of Three Numbers using Nested If Else

In this article, we will write a Python program to find the largest of three numbers using nested if else ...

#### Python Program to Print a Hollow Diamond Star Pattern

In this article, we will write a Python program to print a hollow diamond star pattern. The program takes the ...

#### C Program to Find the Square Root of a Number

In this article, we will write a C program to find the square root of a number. The program takes ...

#### C Program to Print All Even and Odd Numbers in an Array

In this article, we will write a C program to print all even and odd numbers in an array. The ...

#### C Program to Find the Sum of Digits of a Number

In this article, we will write a C program to find the sum of digits of a number. The program ...

#### C Program to Reverse an Array using Recursion

In this article, we will write a C program to reverse an array using recursion. Reversing the array means, the ...

#### C Program to Reverse an Array using Pointers

In this article, we will write a C program to reverse an array using pointers. The program walks through the ...

#### C Program to Print Array Elements in Reverse Order

In this article, we will write a C program to print array elements in reverse order. The program walks through ...

#### C Program to Subtract Two Numbers

In this article, we will write a C program to subtract two numbers. The program takes the two numbers from ...

#### C Program to Add Two Floating Point Numbers

In this article, we will write a C program to add two floating point numbers. The program takes two floating ...

#### C Program to Add Two Numbers

In this article, we will write a C program to add two numbers. The program takes two integers from the ...

#### C Program to Find the Second Largest Number in an Array

In this article, we will write a C program to find the second largest number in an array. The program ...

#### C Program to Convert an Uppercase String to a Lowercase String

In this article, we will write a C program to convert an uppercase string to a lowercase string. The program ...

#### C Program to Compare Two Strings Without Using the strcmp() Function

In this article, we will write a C program to compare two strings without using the strcmp() function. The program ...

#### C Program to Find the Power of a Number without Using the pow() Function

In this article, we will write a C program to find the power of a number without using the pow() ...

#### C Program to Add Two Complex Numbers

In this article, we will write a C program to add two complex numbers using structures. The program takes the ...

#### C Program to Find the Smallest of Three Numbers

In this article, we will write a C program to find the smallest of three numbers. The program takes three ...

#### How to Reverse a List without Reverse Method in Python?

To reverse a list without using the reverse() method in Python, you can use the slicing operator. You need to ...

#### How to Call a Function in JavaScript?

Functions play a very crucial role in any programming language. They help us divide bigger problems into smaller pieces by ...

#### How to Replace Multiple Spaces with a Single Space in JavaScript?

An straightforward way to replace multiple spaces with a single space in JavaScript is to use the String.replace() method. The ...

#### How to Remove the Last Character of a String in JavaScript?

To remove the last character of a string in JavaScript, you can use the String.slice() method. The slice() method takes ...

#### C Program to Subtract Two Numbers without using the Subtraction Operator

In this article, we will write a C program to subtract two numbers without using the subtraction operator. The program ...

#### C Program to Find the Factorial of a Number using Recursion

In this article, we will write a C program to find the factorial of a number using recursion. The program ...

#### C Program to Find the ASCII Value of a Character

In this article, we will write a C program to find the ASCII value of a character. The program takes ...

#### C Program to Calculate the Average of 3 Numbers using Function

In this article, we will write a C program to calculate the average of 3 numbers using function. The program ...

#### C Program to Find the Average of 3 Numbers

In this article, we will write a C program to find the average of 3 numbers. The program takes 3 ...

#### C Program to Check if a Year is a Leap Year or Not

In this article, we will write a C program to check if a year is a leap year or not ...

#### C Program to Merge the Contents of Two Files into a Third File

In this article, we will write a C program to merge the contents of two files into a third file ...

#### C Program to Count the Number of Lines in a File

In this article, we will write a C program to count the number of lines in a file. The program ...

#### C Program to Append Data to an Existing File

In this article, we will write a C program to append data to an existing file. The program asks the ...

#### C Program to Rename a File

In this article, we will write a C program to rename a file. The program asks the user to enter ...

#### C Program to Delete a File

In this article, we will write a C program to delete a file from a given directory. The program takes ...

#### C Program to Create a File and Write Data into It

In this article, we will write a C program to create a file and write data into it. The program ...

#### C Program to Copy the Content of One File into Another

In this article, we will write a C program to copy the content of one file into another. The program ...

#### C Program to Print the Content of a File

In this article, we will write a C program to print the content of a file. The program takes the ...

#### C Program to Check Whether a File Exists or Not

In this article, we will write a C program to check whether a file exists or not in a given ...

#### C Program to Find the Size of a File

In this article, we will write a C program to find the size of a file in bytes and kilobytes ...

#### Write a C Program to Check if a File Exists or Not

In this article, We will write a C program to check if a file exists or not on a given ...

#### How to Set and Get Cookies in Angular With Examples?

A cookie in the context of web development is a small piece of data that a web server stores in ...

#### Angular Error: Unknown argument prod While Running ng build Command

One of the most commonly encountered errors while running the ng build command in Angular is Error: Unknown argument: prod ...

#### C Program to Take a Character Input from the User

In this article, we will write a C program to take a character input from the user. The program asks ...

#### How to Remove Query Params from URL in Angular?

In Angular, query parameters are a way to pass additional information between different routes and components by appending them at ...

#### How to Check the Angular Version of an Angular Project?

When you are working on an Angular project, it is important to know the version of Angular used by the ...

#### How to Add Angular Material to an Angular Project?

Angular Material is a very popular UI component library that is widely used in modern Angular applications. It offers a ...

#### How to Navigate to an External URL/Link in Angular?

In Angular, if we want to navigate to a link/URL on the same site where our Angular application is running, ...

#### How to Get the HTML DOM Element in Angular?

Like Javascript's getElementById() method, there is no similar method in Angular that you can directly use to get a DOM ...

#### How to Pass x-www-form-urlencoded Data in Angular?

To specify the type or format of the data that is being sent over an HTTP request, we use the ...

#### C Program to Check Vowel or Consonant using Switch Case Statement

In this article, we will write a C program to check if a character is a vowel or consonant using ...

#### Top 25 Star Pattern Programs in JavaScript with Examples

When you start learning the basics of any programming language, one of the common and fundamental exercises you will encounter ...

#### The Complete CSS Selectors Cheat Sheet With Examples and PDF

We all know that CSS is an essential part of web development and it is typically one of the first ...

#### Check if a Key Exists in LocalStorage using JavaScript

To check if a key exists in the browser's local storage or not, you can use the getItem() method of ...

#### Essential Java Full Stack Developer Skills in 2023

Undertaking a full-stack Java development course is one of the best options for individuals who want to be all-round. Java ...

#### C Program to Find the Length of a String

In this article, we will write a C program to find the length of a string. The program takes a ...

#### C Program to Convert Decimal to Binary using Array

In this article, we will write a C program to convert a decimal number to binary with the help of ...

#### C Program to Count the Number of Alphabets, Digits and Special Characters in a String

In this article, we will write a C program to count the number of alphabets, digits and special characters in ...

#### C Program to Find the Length of a String using Inbuilt strlen() Function

In this article, we will write a C program to find the length of a string using the inbuilt strlen() ...

#### C Program to Count the Number of Digits in an Integer

In this article, we will write a C program to count the number of digits in an integer. The program ...

#### C Program to Calculate the Sum and Average of an Array

In this article, we will write a C program that calculates the sum and average of an array. The program ...

#### C Program to Reverse an Array without using Another Array

In this article, we will write a C program that reverses an array without using any other array. Sample Examples: ...

#### Angular FormBuilder Example With Reactive Forms

In this article, we will create a reactive form in Angular with the help of FormBuilder API. The FormBuilder API ...

#### Angular Radio Buttons Demo with Reactive Forms

In this tutorial, we will create a reactive form in Angular which contains radio buttons as its form controls. For ...

#### Set Default Value in Select Dropdown in Angular Reactive Form

To set a default value in a select dropdown in Angular's reactive form, you can call the setValue() method on ...

#### How to Check if a Reactive Form Value is Changed in Angular?

To check if a reactive form value is changed in Agular, you can subscribe to the valueChanges property of the ...

#### How to Check if a Reactive Form is Dirty in Angular?

In Angular, a reactive form is considered "dirty" when any of its form controls have been modified by the user ...

#### How to Get Nested Form Group Value in Angular Reactive Form?

To get the nested form group value in Angular Reactive Form, you can use the get() method to retrieve the ...

#### Angular Set Focus on Input Field Automatically on Page Load

In Angular, you can set focus on an input field automatically on page load by using the ViewChild decorator to ...

#### Disable All Form Controls inside a Form Group in Angular

In Angular, you can disable all form controls inside a form group by calling the disable() method on the form ...

#### Disable Input Based on Selection in Angular Reactive Form

To disable an input based on selection in Angular, Bind the (change) event of the dropdown with some function in ...

#### Disable Submit Button if the Input Field is Empty in Angular

To disable the submit button if the input field is empty in Angular, Bind a function to the (input) event ...

#### How to Check Uncheck All Checkboxes in Angular?

To check uncheck all checkboxes in Angular, you can bind the [checked] property of each checkbox to a corresponding boolean ...

#### How to Disable a Button in Angular?

To disable a button in Angular, you can set its disabled property to a boolean value true and if the ...

#### How to Get the Selected Radio Button’s Value in Angular?

To get the selected radio button's value in Angular, you can bind a function to the (change) event of the ...

#### How to Show or Hide an Element in Angular?

To show or hide an element in Angular, you can use the *ngIf directive. The *ngIf directive in Angular is ...

#### How to Check if a Radio Button is Checked or Unchecked in Angular?

To check if a radio button is checked or unchecked in Angular, you can use its [checked] property. The checked ...

#### How to Call a JavaScript Function on Page Load?

To call a JavaScript function on page load, you can attach the onload event handler property to the global window ...

#### How to Call Multiple JavaScript Functions in a Single click Event?

To call multiple JavaScript functions in a single click event, separate each function call with a semicolon(;) within the onclick ...

#### How to Add Hours to a Date in JavaScript?

To add hours to a date in JavaScript, call the getHours() method on the Date object to get the original ...

#### How to Get the Current Quarter Start and End Date in JavaScript?

To get the current quarter start and end date in JavaScript, Get the current date object by calling the Date() ...

#### How to Subtract Days from a Date in JavaScript?

To subtract days from a date in JavaScript, call the getDate() method on the given date object to get the ...

#### How to Calculate the Number of Days Between Two Dates in JavaScript?

To calculate the number of days between two dates in JavaScript, Pass each date string to the Date() constructor as ...

#### How to Convert a Date from YYYY-MM-DD to DD-MM-YYYY Format in JavaScript?

To convert a date from YYYY-MM-DD format to DD-MM-YYYY format in JavaScript, call the String.split() method to split the original ...

#### How to Get the Current Date in JavaScript?

In JavaScript, you can easily get the current date by simply calling the Date() constructor without passing any parameters to ...

#### How to Get Yesterday’s Date in JavaScript?

To get yesterday's date in JavaScript, call the Date() constructor to get the current or today's date and then simply ...

#### How to Check if a Date is Before Today in JavaScript?

To check if a date is before today, first get the today's date object by calling the Date() constructor and ...

#### How to Get the Month Name from a Date in JavaScript?

To get the month name from a date in JavaScript, call the toLocaleString() method on the date object by passing ...

#### How to Convert Timestamp to a Date in JavaScript?

The UNIX timestamp is defined as the total number of seconds elapsed since January 1st, 1970 00:00:00 UTC. In JavaScript, ...

#### How to Get the Current Timestamp in JavaScript?

The UNIX timestamp is defined as the total number of seconds passed since January 1st, 1970 00:00:00 UTC. To get ...

#### How to Format a Date to YYYY-MM-DD in JavaScript?

To format a date to YYYY-MM-DD in JavaScript, call the getFullYear(), getMonth() and getDate() methods on the date object to ...