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...

How do I initialize a pointer to a function?

Answer Posted / jaya prakash

return_type (*pointername)(arg list)

eg
void fnname();
void (*f)()=fnname;//ptr initialisation
//f is the poniter to fn printf

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main a keyword in c?

1142


How do we open a binary file in Read/Write mode in C?

1246


What is array within structure?

1131


Can the “if” function be used in comparing strings?

1062


Which is better pointer or array?

1037


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1147


What are the __date__ and __time__ preprocessor commands?

1125


how can f be used for both float and double arguments in printf? Are not they different types?

1079


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

10215


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1139


Which is better between malloc and calloc?

1211


What is meant by type specifiers?

1142


How do I convert a string to all upper or lower case?

1136


What is a stream water?

1232


Which are low level languages?

1105