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 are the two shift operators and what are their functions?

0 Answers  


Is there structure in c++?

0 Answers  


What are 2 ways of exporting a function from a dll?

0 Answers  


Why is c++ still best?

0 Answers  


What are c++ stream classes?

0 Answers  






What is an adaptor class or Wrapper class?

1 Answers  


What is dangling pointers?and what is memory leak?

5 Answers  


Explain the auto storage classes in c++.

0 Answers  


What is binary object model?

0 Answers  


What is the extension of c++?

0 Answers  


Why pointer is used in c++?

0 Answers  


Who made c++?

0 Answers  


Categories