declare afunction pointer to int printf(char *)?

Answer Posted / sunil singh

the function pointer to an int printf(char *) will be:

int (*ptr)(char*);

Now you can assign the function address to the pointer to a
function.

ptr = printf;

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1611


What is preprocessor with example?

774


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1622


program to convert a integer to string in c language'

2179


where are auto variables stored? What are the characteristics of an auto variable?

822


explain how do you use macro?

895


When should a type cast be used?

760


C language questions for civil engineering

1459


How are portions of a program disabled in demo versions?

992


What is the purpose of void in c?

787


How can I discover how many arguments a function was actually called with?

824


Are bit fields portable?

883


What is a shell structure examples?

788


How can I implement a delay, or time a users response, with sub-second resolution?

831


What is ponter?

1007