Why seem interrupt handlers as member functions to be impossible?



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

Post New Answer

More C++ General Interview Questions

What is meant by const_cast?

0 Answers  


In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 Answers  


Is there any difference between dlearations int* x and int *x? If so tell me the difference?

16 Answers   Lason,


What are the benefits of pointers?

0 Answers  


What do you mean by call by value and call by reference?

1 Answers  






Is c++ still in demand?

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


Show the application of a dynamic array with the help of an example.

0 Answers  


Is c++ platform dependent?

0 Answers  


diff between pointer and reference in c++?

1 Answers  


How many ways can a variable be initialized into in C++?

0 Answers   HCL,


sir i want to study the c++ course but ino what is the qualification and the study methode please reply more details in c++

1 Answers   NIIT,


Categories