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

Differentiate between declaring a variable and defining a variable?

0 Answers  


Explain what are run-time errors?

0 Answers  


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

0 Answers  


what is unsigened char and what is the difference from char

2 Answers  


Please list all the unary and binary operators in C.

3 Answers  


What is volatile c?

0 Answers  


What is return type in c?

0 Answers  


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


What is clrscr ()?

0 Answers  


m=++i&&++j(||)k++ printf("%d"i,j,k,m)

1 Answers   ABC,


main() {int a=200*200/100; printf("%d",a); }

14 Answers   TCS,


Why do we use stdio h and conio h?

0 Answers  


Categories