Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why seem interrupt handlers as member functions to be impossible?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use the functions memcpy(), memset(), memmove()?

1033


Show the declaration for a static member variable.

954


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2736


How to declare an array of pointers to integer?

1070


What is implicit conversion/coercion in c++?

1358


How java is different from c and c++?

1150


How do I run a program in notepad ++?

1043


What is dynamic and static typing?

1134


What is the advantage of an external iterator.

978


What do you mean by global variables?

1026


What is a binary file? List the merits and demerits of the binary file usagein C++.

1232


Explain overriding.

952


Explain about vectors in c ++?

970


What is abstract keyword in c++?

1021


What is the meaning of string in c++?

1011