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 |
Describe exception handling concept with an example?
They will ask u question about single linked list?. Write Code for to insert delete node.
Explain the difference between struct and class in terms of access modifier.
What relational operators if statements in c++?
What are smart pointers?
What are move semantics?
When can you tell that a memory leak will occur?
Can we define a constructor as virtual in c++?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What is the first name of c++?
What do you mean by translation unit?