Pages

Saturday 10 September 2011

User-Defined Data Structures

Stackes, queues and trees are classical general purpose data structures. Some programming languages, such as JAVA, provide built-in support for some of these structures.

We can also create our own data structures, which are called user-defined. For example we can define a data structre to store recored of 100 employees.
  • Each record consist of employee's name, deignation and salary
  • The code fragment in C might be as follows:
The elements of employee array can be accessed using C notation as follows:
employ[0]<-name, employ[0]<-title, employ[0]<-salary

2 comments:

  1. what are in built data structures in c language?

    ReplyDelete
  2. A blog like yours should be earning much money from adsense..-.,” python islower

    ReplyDelete