GeekInterview.com
Answered Questions

Function pointer

Asked By: ak.nextptr | Asked On: Mar 21st, 2012

How to assign function pointer to static function?

Answered by: ak.nextptr on: Jul 31st, 2012

if int fn(char ch,int a) is static function then
function pointer type to above static function will be
int (*)(char , int )

Answered by: cooder on: Apr 26th, 2012

Using the class name. In case of non static function we need to use the this pointer.

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: