How do you initialize function pointers? Give an example?

Answer Posted / vadivel t

Sorry the above function pointer declaration should be like
this

(*pfunc)(int, int);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c program in such a way that if we enter the today date the output should be next day's date.

1677


Can we access array using pointer in c language?

638


What is a rvalue?

743


Differentiate between #include<...> and #include '...'

615


What are actual arguments?

641






What is the difference between struct and union in C?

564


Describe how arrays can be passed to a user defined function

774


What is declaration and definition in c?

520


Why shouldn’t I start variable names with underscores?

621


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

660


What is wrong with this initialization?

582


What is the modulus operator?

728


What is a pragma?

662


What is the general form of function in c?

607


What are the different types of linkage exist in c?

606