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 |
What are the types of type specifiers?
What is difference between arrays and pointers?
Why do we use header files in c?
Is fortran still used today?
In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?
What is the difference between GETS();AND SCANF();
what is array?
What are the advantages of c language?
What is Function Pointer? Explain with example?
Why pointers are used?
Is there any data type in c with variable size?
void main(int argc,char *argv[],char *env[]) { int i; for(i=1;i<argc;i++) printf("%s",env[i]); }