declare afunction pointer to int printf(char *)?



declare afunction pointer to int printf(char *)?..

Answer / 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

More C Interview Questions

What is the difference between local variable and global variable in c?

0 Answers  


Explain what is the difference between null and nul?

0 Answers  


Are comments included during the compilation stage and placed in the EXE file as well?

0 Answers  


Are there namespaces in c?

0 Answers  


how would a 4*3 array A[4][3] stored in Row Major Order?

0 Answers   HCL, Ignou,






what are the interview question's in the language c

2 Answers   Nipuna,


Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program

19 Answers   CTS, HCL, TCS,


How can I get back to the interactive keyboard if stdin is redirected?

0 Answers  


What are the Advantages of using macro

0 Answers  


What is ponter?

0 Answers   TCS,


how to swap 2 numbers within a single statement?

4 Answers  


In a switch statement, explain what will happen if a break statement is omitted?

0 Answers  


Categories