Need the actual logic of beelow problem

sdmahapatra's Avatar, Join Date: Jun 2009
Go4Expert Member
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 problems are in c++

As I'm new in this field so,please help me to sweep out the problems.
Thanks and regards

Last edited by sdmahapatra; 5Aug2009 at 21:48..
Saket's Avatar
Go4Expert Member
For 1st program you can go like this, check for the number. for example say number is check for each numbr, first 5 and then 3.
sdmahapatra like this