Need the actual logic of beelow problem

Hi everyone I couldn't find the actual logic behind below two problems:
(1) how to capture number of occurrences of 3 between 1 to 100? and (2) assigns a function to a pointer and subsequently call it.all these problems are in c++

As I'm new in this field so,please help me to sweep out the problems.
Thanks and regards
sdmahapatra
For the second problem see http://www.cplusplus.com/doc/tutorial/pointers/ ( scroll down to the section Pointers to functions )
Yes Bazzy my friend, 2nd problem has been solved and the the article is really very useful.Thanks for your kind concern on my problem but 1st problem not yet solve. thanks
Last edited on
My friend Buzzy, the first problem also been solved.so I mark it as solved.Thanks for your attention on my problem.

Thanks and Regards
sdmahapatra
Topic archived. No new replies allowed.