Skip to main content

Posts

Showing posts with the label Console

Linked List Data Structure

A linked list is a linear data structure just like arrays but its elements do not store in the contagious location. Elements in a linked list are connected through pointers as shown in the below image. Link list consists of nodes. Each node contains a data field and a pointer reference to the next node in the list. Important Points about the linked list A linked list can be used to store linear data of diffent type. Dynamic size. Ease of insertion and deletion of an element. Random access of an element is not allowed. if we want to search an element we have to go sequentially starting from the first node.  Extra memory space would be required for the pointer with each element of a linked list. A linked list is represented by a pointer to the first node o the list. The first node called head.if the linked list is empty then the head is NULL. Let's start implementation of a simple linked list in C# I have created a project of the consol...

C# Console Application

A Console Application Screen is look like this:     To Create Console Application open Visual studio and click File from the menu bar at the top.From the file menu select New Project. When you click on New Project Following window will be appear.                                                                                                  In Case of Visual Studio 2010 window will be look like this: When you click OK , a new Console Application Project will be created.Some Code should be displayed.    Above is the Program.cs File in the Solution Explorer.Here You can write code according t...