Why seem interrupt handlers as member functions to be impossible?
Answer Posted / rohit sah
Interrupt handlers as member functions _are_ possible. But they must be static member functions. Static member functions don't make use of the implicit 'this' pointer required by normal member functions. The caller of the interrupt handler doesn't know anything about objects and 'this' pointers, so it can't pass a value of such a pointer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by zombie objects in c++?
Explain overriding.
Explain all the C++ concepts using examples.
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What is a far pointer? where we use it?
What is heap sort in c++?
What does int * mean in c++?
Why do we need pointers?
What is vector processing?
What is the use of endl in c++ give an example?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What is the difference between public, private, and protected access?
Write a note about the virtual member function?
What does count ++ do in c++?
What is c++ flowchart?