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 array in C

0 Answers  


write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR

5 Answers  


Explain what does a function declared as pascal do differently?

0 Answers  


When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these

1 Answers   Accenture, IBM,


Write a c program to print the even numbers followed by odd numbers in an array without using additional array

1 Answers   Tech Mahindra,






What are the primitive data types in c?

0 Answers  


difference between c and c++?

2 Answers  


write a program to display the frequency of each element in a given array in c language

1 Answers  


difference between ordinary variable and pointer in C?

2 Answers  


How can I open a file so that other programs can update it at the same time?

0 Answers  


Explain what is page thrashing?

0 Answers  


What is the collection of communication lines and routers called?

0 Answers  


Categories