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
What are the different file extensions involved when programming in C?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Does c have enums?
How many types of arrays are there in c?
What is a constant and types of constants in c?
Explain how does free() know explain how much memory to release?
Why c is called object oriented language?
What is hungarian notation? Is it worthwhile?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What are reserved words?
What is void main ()?
What is pointer to pointer in c language?
What are shell structures used for?
what is recursion in C
Explain a file operation in C with an example.