
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 26504 Articles for Server Side Programming

896 Views
Structures in programming languages like C and C++ are a collection of related data fields, which can be accessed and manipulated as a single entity. They are often used to group related data items into a single variable, making it easier to manage and work with complex data structures. However, as code bases grow and evolve over time, it is not uncommon for structures and their members to become unused or redundant. These unused structures and members can clutter code and make it more difficult to understand, maintain, and update. In this article, we will discuss some ways to locate ... Read More

3K+ Views
Introduction The corrupt stack problem is a common issue that programmers encounter while developing software in C and C++ programming languages. This problem can arise due to a wide range of reasons and can cause severe problems in functioning of program. In this article, we will explore corrupt stack problem in detail and look at some examples of how it occurs. What is a Stack in C and C++? Before we discuss corrupt stack problem, we need to understand what a stack is. In C and C++, a stack is a data structure that allows data to be stored and ... Read More

2K+ Views
In swift, we have various methods like Array() initializer and for-in loop that can be used for getting the subarray from an array using a specified range of indices. An array stores elements of the same data type in an order. Let’s understand both the methods in detail in this article. Method 1: Using Array() initialiser To get the subarray from an array using a specified range of indices we uses Array() initialiser. Here we find the subarray using range operator and then convert the elements into the array using Array() initialiser. Algorithm Step 1 − Create an ... Read More

634 Views
Swift has various functions like flatmap(), compactmap(), reduce() to flatten an 1D array. An array is used to store elements of same data type in an order whereas a set is used to store distinct elements of same data type without any definite order. Method 1: Using flatmap() Function To flatten 2D array into 1D array we can use flatmap() function. The flatmap() function return an array by concatenating the sub arrays into a single array. Syntax func flatMap{_res} Here, res is a closure which accepts the element of the specified array as its argument and return a flattened ... Read More

559 Views
In this article, we will learn how to write a swift program to convert an array into a string and join elements with a specified character. An array is used to store elements of same data type in an order. Here we use the following methods to join elements of the array with a specified character − Using joined(separator:) function Without using inbuilt function Method 1: Using joined(separator:) Function So to convert an array into a string and join elements with a specified character we use joined(separator:) method. This method is used to concatenate the elements of the ... Read More

2K+ Views
To check if the given string is numeric or not we use Double() initializer in Swift Programming. A string is an ordered collection of characters for example “Sky”. A string can be numeric and non-numeric. A numeric string is a string which only contains numbers for example “12345”. So the valid numeric strings are: “3423”, “222333”, “34.342”, etc., whereas non-valid numeric strings are “23hfd23”, “423131sdd”, etc. So it converts the given string into double and return true if the given string is numeric otherwise return false. Algorithm Step 1 − Create a function Step 2 − Return ... Read More

323 Views
A matrix is an arrangement of numbers in rows and columns. A matrix has two diagonals i.e. Right diagonal and Left diagonal. So here we calculate the sum of the right diagonal of the square matrix using Swift Programming. For example, we have the following matrix − Matrix = 3 4 5 5 3 2 1 8 1 The right diagonal elements are 5, 3, 1. So the sum of right diagonal is 9(5+3+1). Algorithm Step 1 − ... Read More

256 Views
A matrix is an arrangement of numbers in rows and columns. Matrix can be of various type like square matrix, horizontal matrix, vertical matrix etc. So here we calculate the sum of the left diagonal of the square matrix using Swift Programming. A square matrix is a matrix in which the number of rows and columns are same. For example 2x2, 5x5, etc. For example, we have the following matrix − Matrix = 3 4 5 1 5 3 2 2 1 ... Read More

157 Views
In Go programming language, a new module is initiated using init command after which we can import other modules in our code. There is no concept of class in Go, only structs are used. In this article, we will use one example to include a module inside the class. In this example, we will create a Circle struct whose area will be printed on the console. For this example, we will import math and fmt packages outside the struct but they can be used anywhere. The print statement is executed using Printf function from the fmt package. Algorithm Import ... Read More

704 Views
We can create a block in golang using curly braces and then create a variable inside the block to have the scope only inside the block and not outside it. In this article, we will use three examples to create a block using curly braces. In the first example few statements will be printed inside and outside the block, in the second example comparison value will be printed inside the block and in the third example function will be used to demonstrate the use of block. Algorithm Import the required packages in the program Create a main function In ... Read More