
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 33676 Articles for Programming

174 Views
In Swift, a set is used to define a collection of unique elements, means a set doesn’t contains duplicate elements. In a set, the elements are not arranged in a particular order. Initialising a set means to store some information in the set. It can be done at the time of declaration or after declaration. We can initialise a set in various way like initialising a set without explicitly passing data types, initialising a set with explicitly passing data types, and using inbuilt insert() function. Now lets discuss all the method in detail along with examples. Method 1 In this ... Read More

18K+ Views
Introduction On the computer, we can store files in a directory, also known as a folder. A directory also contains shortcuts to other directories and files. If we want to know what all files have stored in a directory then C# also offers an easy way to do so. In this article, we will be learning a C# program to get all files present in a directory. There are more than a couple of ways to know the files available in the directory. Let us discuss them in the upcoming sections. 1. GetFiles() Method For knowing the name ... Read More

615 Views
In Swift, the Linear search algorithm is the easiest search algorithm. In a linear search algorithm, searching starts from index 0 and checks all the elements of the given array/sequence one by one until the desired element is found. If the desired element is found, then return the index of that element. If the desired element is not found, then return null. For example − We have an element M = 13, now we search M in the following array using a linear search algorithm − The linear search algorithm starts from index 0 and compares M=13 with ... Read More

546 Views
In swift, Bubble sort algorithm is the easiest search algorithm. This algorithm sorts the elements by repeatedly swapping adjacent elements if they are not present at the right place. This algorithm works well only for small set of elements, it is not suitable for larger number of elements because its average and worst case time complexity is high. So the working of the bubble sort is − Suppose we have the following array − Now we sort the array in ascending order using the bubble sort. Here starting from the first index we compare the first and second element. ... Read More

4K+ Views
Introduction There are a lot of ways to generate a mark sheet for a student. Today we will learn one of them. In this article, we will learn a C# program to generate the mark sheet of a student. Let us learn the algorithm first. Algorithm Let us discuss the algorithm to write the program which generates the mark sheet of a student. The student has to give the input to the system and then the mark sheet is generated. Step 1 − Firstly we declare the integer variables for storing the different data such as the roll ... Read More

324 Views
Introduction In this article, we are going to find the greatest number in an array using the WHERE clause in LINQ. LINQ (Language Integrated query) is used to generate queries in C# Language. The best part of LINQ is that it provides a unified source of the method to access data from different sources like databases and XML documents. With the help of LINQ, users can write code that has much better readability and the code is much more concise and good-looking. It also provides other functionalities like filtering, sorting, grouping data and even changing them. Before moving ahead we ... Read More

507 Views
Introduction In this article, we will understand the C# program to find out the value of Sin(x). Sine is another name for Sin(x). It is a trigonometric angle formula. The sine of an angle is the proportion of the length of the hypotenuse to the length of the perpendicular in a right-angled trapezoid. The robust computer language C# can be used to resolve challenging mathematical issues. Finding the value of sin(x), where x is any angle in radians, is one of these issues. In this article, we'll look at how to use the Math library to create a C# program ... Read More

517 Views
Introduction In this article, we will learn how to write a C# program to find integer numbers from the list of objects and sort them using LINQ. Let's have a small overview of the language. The C# programming language is frequently used to develop desktop, web, and mobile apps. Linguistic Integrated Query, sometimes known as LINQ, is one of C#'s strong points. Developers may quickly query data from various sources, including arrays, collections, and databases. It gives developers access to a syntax that is comparable to SQL (Structured Query Language) and enables simple data manipulation and sorting. Regardless of the ... Read More

494 Views
Introduction In this article, we will understand the C# program to estimate the size of a folder. On our PC, we store files in a directory called a folder. We will also be understanding how to estimate the size of folders that are present inside a file. Calculation of just file size is not enough to reach our goal. Instead we need to calculate the size of folders and subfolders too. The article below will explain to calculate the size of the folder in three parts. The first part we will know will be the GetFolderSize method which will ... Read More

703 Views
Introduction On the computer, we can store files in a directory, also known as a folder. A directory also contains shortcuts to other directories and files. Here, we will discuss the C# Program to Delete Empty and Non-empty Directories. A static class called Directory offers static methods for dealing with directories. A DirectoryInfo object offers details on a particular directory. Delete Empty and Non-empty Directory Now that we have a directory (either empty or not), we must delete it. An empty directory indicates that there are no files or subdirectories present in the directory. A directory can be ... Read More