Re: [algogeeks] c++ templates

2011-08-16 Thread SANDEEP CHUGH
:) On Tue, Aug 16, 2011 at 11:57 PM, priya ramesh < love.for.programm...@gmail.com> wrote: > @sandeep : thank you :) > > -- > 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. >

Re: [algogeeks] c++ templates

2011-08-16 Thread priya ramesh
@sandeep : thank you :) -- 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,

Re: [algogeeks] c++ templates

2011-08-16 Thread SANDEEP CHUGH
yeah it will be created... so code size will be the same.. only benefit of templates is clearer understanding and u dnt hav to write code , as compiler does it for you On Tue, Aug 16, 2011 at 11:51 PM, priya ramesh < love.for.programm...@gmail.com> wrote: > Please Explain the working of templat

[algogeeks] c++ templates

2011-08-16 Thread priya ramesh
Please Explain the working of templates in c++. for a template like template T sum (T n1, T n2){ return n1+n2; } Will a separate function like int sum (int , int) be created when it is instantiated with an integer?? -- You received this message because you are subscribed to the Google Groups "