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 the auto keyword good for in c++?

0 Answers  


What is the difference between *p++ and (*p)++ ?

0 Answers  


What are the various storage classes in C++?

0 Answers   Fidelity,


Have you used MSVC? What do you think of it?

2 Answers   Google,


Write about the various sections of the executable image?

0 Answers  






what is object?

7 Answers  


Which is the best c++ software?

0 Answers  


Where is atoi defined?

0 Answers  


Const char *p , char const *p What is the difference between the above two?

0 Answers   TCS,


Explain selection sorting. Also write an example.

0 Answers  


You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.

4 Answers  


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

0 Answers  


Categories