Why seem interrupt handlers as member functions to be impossible?
Answer / 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 |
How do you know that your class needs a virtual destructor?
Explain how functions are classified in C++ ?
What are manipulators used for?
What is the basic structure of c++ program?
What is c++ map?
Write a program to calculate the BMI of a person using the formula BMI = weight/height2.
What are the weaknesses of C++?
What does override mean in c++?
What do you mean by stack unwinding in c++?
Will the following program execute?
Why c++ is called oop?
What is class in c++ with example?