How to use strchr to print substring starting from a specific character

In this tutorial, we will learn what is strchr in C programming language and how to use it. We will show you with an example with explanation.strchr function can return the pointer to the first occurance of a character in a string.

Read

C program to read the contents of a text file character by character

Learn how to read the contents of a text file character by character in C. We will also learn how to write the content to a different text file.

Read

Button group in Bootstrap 4 : Explanation with example

Button-group or group of buttons can be created in bootstrap easily. Bootstrap comes with one inbuilt class called btn-group for displaying buttons in groups. We can create vertical or horizontal groups with different types of buttons. In this tutorial, we will mainly learn how to create button groups using bootstrap 4. We will post the full html file code below that you can copy into any .html file and check the result. Let's take a look :.

Read

How to check the type of a field in Mongo shell

We can check the type of a field using Mongo shell. In this quick tutorial, I will show you how to do that.MongoDB provides two different operators for type checking. MongoDB provides two different operators for type checking- instanceof and typeof. Using these operators, we can either check if a field is of a certain type or we can check the type of a field. Let me show with two examples to make this more clear.

Read

How to check if a number is perfect or not in Javascript

A positive integer is called a perfect number if the sum of its proper divisors excluding the number is equal to that number. That means, it is half of the sum of all the positive divisors including the number.

Read

How to remove element from an array in Javascript

Most of the time we need to manipulate array objects like removing an element from an array. We can either remove an element and change the original array or we can create one different array by changing the original.There are several ways to remove one or more element from an array. Let's go through each one of them one by one.

Read

How to reverse a string in Javascript in one line

As we know, string is immutable, so if we need to reverse a string, we can't just change the position of all characters. In this tutorial, we will learn how to reverse a string in Javascript. I will show you the exact steps required to reverse a string and how to do it in one line. Let's take a look :.

Read

Create a button programmatically in iOS using Swift 4

iOS Swift program to create a button programmatically. We will learn how to create one iOS UI element programmatically using swift. This example will show how to create a UIButton programmatically.

Read

Python program to replace single or multiple character,substring in a string

Python program to replace single or multiple characters or substrings in a string. Learn how to replace single or multiple character or substrings for single or n number of times.

Read

Python program to remove all occurrence of a value from a list

In this tutorial, we will learn how to remove all occurrence of a value from a list in python. For example, if the list is [1,1,2] and if we will remove all occurrence of 1, it will become [2]. I will show you two different ways to solve this problem. Let's take a look :.

Read