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


Please Help Members By Posting Answers For Below Questions

write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3191


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

659


Differentiate between functions getch() and getche().

625


How to establish connection with oracle database software from c language?

1678


How does sizeof know array size?

632






What is the most efficient way to count the number of bits which are set in an integer?

594


How can I ensure that integer arithmetic doesnt overflow?

609


Apart from dennis ritchie who the other person who contributed in design of c language.

814


What is static and volatile in c?

782


a c code by using memory allocation for add ,multiply of sprase matrixes

2305


How to find a missed value, if you want to store 100 values in a 99 sized array?

820


Differentiate between calloc and malloc.

761


What are the different types of linkage exist in c?

614


How many bytes is a struct in c?

726


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3503