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
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is extern variable in c with example?
Explain data types & how many data types supported by c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Explain what is meant by high-order and low-order bytes?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is the use of ?
What is the benefit of using an enum rather than a #define constant?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is default value of global variable in c?
What are pointers in C? Give an example where to illustrate their significance.
What are global variables and how do you declare them?
Difference between macros and inline functions? Can a function be forced as inline?
How can you invoke another program from within a C program?
Explain two-dimensional array.