If i were to define an abstract data type with static variables. Is it possible to make more than one instance of that adt.?
This is a discussion on multiple instance of ADT within the C Programming forums, part of the General Programming Boards category; If i were to define an abstract data type with static variables. Is it possible to make more than one ...
If i were to define an abstract data type with static variables. Is it possible to make more than one instance of that adt.?
"Assumptions are the mother of all **** ups!"
Is this a C or C++ question?
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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
If you mean like this, then the answer is no
C has no support for such an ideaCode:struct wibble { int foo; static int bar; // only one of these, no matter how much wibbling you do };
But there are ways around such problems
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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
cool, i know it was a silly question but i just wanted to check![]()
"Assumptions are the mother of all **** ups!"