@sourabh are you sure the code

int main()
{

g();
f();
}

inline int f(){
g();
return  g()+1;
}
inline int g()
{
return 1;
}

does work i think i must give compilation error.
Because a function need to be declared, before it is called in case of c++.
and by inline the code in the function is replaced when it is called.

On Wed, Jun 8, 2011 at 8:31 PM, hary rathor <harry.rat...@gmail.com> wrote:

> because compiler have know about g funtion while evaluating f
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Varun Pahwa
B.Tech (IT)
7th Sem.
Indian Institute of Information Technology Allahabad.
Ph : 09793899112
Official Email :: rit2008...@iiita.ac.in
Another Email :: varunpahwa.ii...@gmail.com

People who fail to plan are those who plan to fail.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to