What is pointer to member?



What is pointer to member?..

Answer / Sharad Kumar Omkar

A pointer to member is a variable that stores the address of a non-static member in a class. It allows accessing or modifying members of an object using a pointer, similar to how regular pointers access data. Syntax: `type *class_name::*`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Will a catch statement catch a derived exception if it is looking for the base class?

1 Answers  


Is c++ used anymore?

1 Answers  


Is recursion allowed in inline functions?

1 Answers  


Can we use this pointer in a class specific, operator-overloading function for new operator?

1 Answers  


What is else if syntax?

1 Answers  


Can a function take variable length arguments, if yes, how?

1 Answers  


You want to link a c++ program to c functions. How would you do it?

1 Answers  


How much do c++ programmers make?

1 Answers  


By using c++ with an example describe linked list?

1 Answers  


Is c++ still being used?

1 Answers  


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

1 Answers  


Write any small program that will compile in "C" but not in "C++"

10 Answers   Honeywell,


Categories