If i were to define an abstract data type with static variables. Is it possible to make more than one instance of that adt.?
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.
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.
cool, i know it was a silly question but i just wanted to check
"Assumptions are the mother of all **** ups!"