Thread: Abstract Data Type(ADT)

  1. #1
    Registered User
    Join Date
    Nov 2007

    Abstract Data Type(ADT)

    What is an Abstract Data type in C. I could not find any info as it pertains to C programming. Also How do I Implement one.
    Any examples would be great.

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Why do you want to implement one if you don't know what it is?

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    You mean like 'list' or 'tree' ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Oct 2007
    Abstract data type (ADT) is a specification of a set of data and the set of operations that can be performed on the data.

  5. #5
    Registered User
    Join Date
    Nov 2007

    Abstract data type

    I need to write a program that takes in a name of a person and some other descriptions of the person. The program should also do some calculations with the use of different functions eg. calculate time spent, payment owed etc. I need to do this with the use of an ADT. So what is the format for this?

  6. #6
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Cambridge, UK
    Hint: Structures is an ADT in C. Just an eample in C

    >So what is the format for this?
    May be like this
    struct person
        char name[25];
        char time[20];

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Abstract data types in a queue
    By sa125 in forum C Programming
    Replies: 5
    Last Post: 07-27-2008, 02:51 PM
  2. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-08-2007, 12:24 AM
  3. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  4. Abstract Data Type
    By Thantos in forum C Programming
    Replies: 11
    Last Post: 11-29-2003, 04:17 PM
  5. All u wanted to know about data types&more
    By SAMSAM in forum Windows Programming
    Replies: 6
    Last Post: 03-11-2003, 03:22 PM