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.
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.
Why do you want to implement one if you don't know what it is?
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.
Abstract data type (ADT) is a specification of a set of data and the set of operations that can be performed on the data.
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?
Hint: Structures is an ADT in C. Just an eample in C
>So what is the format for this?
May be like this
ssharishCode:struct person { char name[25]; char time[20]; ... ... };