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.
ReadLearn 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.
ReadButton-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 :.
ReadWe 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.
ReadA 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.
ReadMost 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.
ReadAs 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 :.
ReadiOS 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.
ReadPython 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.
ReadIn 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