Skip to main content

Significance of Data Structure

To make or construct an abstract model or software model of a collection it is started by building the formal specification and the first component of this is the name known as data type - type of objects which belong to the collection class. In C programming, we use typedef to define a new type that is a pointer to a structure:
typedef struct collection_struct *collection;

We are showing a pointer to a structure only, we have not defined details of the attributes of the structure. We are deliberately deferring it and the details of the implementation are irrelevant at such stage. It is only concerned with the abstract behavior of the collection. In actuality, we want to be able to replacement different data structures for the real implementation of the collection, depending on needs.

The typedef declaration provides with a C type or class in OO design parlance, collection. We can state objects of type collection where needed. Although C forces us to expose that the handle for objects of the class is a pointer, This is better to take an abstract view, we look upon variables of type collection simply as handles to objects of the class & forget that the variables are actually C pointers.

Tags: Data Structure, Assignment Help, Homework Help

Comments

Popular posts from this blog

Defining stock and debtors system

Under Stock and Debtors System, the head office does not open a Branch Account in its books. It maintains a few control accounts for recording the various branch transactions. These accounts usually are: (i) Branch Stock Account, (ii) Branch Debtors Account, (iii) Branch Expenses Account, (iv) Branch Cash Account (v) Goods sent to Branch Account, and (vi) Branch Fixed Assets Account. At the end of the accounting year, it prepares the Branch Adjustment Account and the Branch Profit & toss Account. This system is used only when goods are invoiced at , selling price which the branch is not allowed to vary. Let us now study the working of each account opened by the head office when such a system is followed. Branch Stock Account: This is the most important account which helps the head office in controlling the branch stock. It shows all branch transactions relating to goods. The goods sent to branches and the sales returns are shown on its debit side, and the sales (both cash and c...

Mathematics Tutoring- A Step by Step Guide To Math Fun

Would you like to have a little enjoyment with Math? Have a look at our widespread math fun gathering. Many  Mathematics online tutoring website offers math videos represented by qualified and highly trained live tutors who will guide you step-by-step via the math notions. The online tutors will permit students from Upper Kg to 12 to practice necessary math skills and to strengthen vital mathematical concepts. The utilization of advanced technology permits sharing of worksheets for different math topics. Addition, Multiplication, Subtraction, Division, Statistics, Decimals, Fractions, Algebra, Geometry, Measurements, Trigonometry are merely a click away. Are you looking for additional aid in a specific math topic? The websites offers online math tutorials which can help you. Audio visual sessions made learning fascinating and efficient. Parents can happily find fascinating and fun stuff for their kids to enjoy, be grateful for and recognize mathematical complica...

Reckless acts of violence

In 1990, a guy by the name of David Koresh formed a group of followers who believed in the book of revelation as an apocalyptic in the New Testament of the bible who called themselves Branch Davidians.  Koresh was a high school drop out that possessed a young charismatic religious belief.  Koresh's followers called him, "The Lamb of God."  The group formed outside Waco, Texas in a well-built compound built to survive judgment day. A mailman, in 1992, noticed a partially opened package that contained grenades.  The mailman reported this to the Alcohol, Tobacco and Firearms (ATF).  An investigation was opened on the group and Koresh.  As a result, a search warrant was granted to search the compound of weapons and explosives. tactical team formed outside the compound for a raid, which was met with force.  Four agents, and six of Koresh's followers were killed.  This incident lasted for 5 days.  The Federal Bureau of Investigations (FBI) assume...