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 |
What is the difference between "overloading" and "overridding"?
What does new do in c++?
difference between c and c++?
38 Answers Cognizant, IBM, Infosys, Oracle, Sarva Shiksha Abhiyan, Wipro,
What is the difference between method overloading and method overriding in c++?
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
What is an undefined behavior and sequence points
What are advantages of C++ when comparing with C?
18 Answers HP, iGate, TCS,
What are libraries in c++?
what are the iterator and generic algorithms.
Explain selection sorting. Also write an example.
Define a way other than using the keyword inline to make a function inline?
What is the use of endl in c++ give an example?