Well the macro definition should be #define sqrt(x) ((x)*(x)) to capture all the possible scenarios!!
Thanks & Regards, Prashant Bhutani Senior Undergraduate Computer Science & Engineering (B.Tech) Institute of Technology - BHU (IT-BHU) Varanasi-221005 On Sat, Jul 30, 2011 at 1:28 PM, arvind kumar <[email protected]> wrote: > @rajeev:thanks! > > On 7/30/11, arvind kumar <[email protected]> wrote: > > @coool:y is that so..does braces matter here?? > > > > On 7/30/11, coool !! <[email protected]> wrote: > >> its 64... > >> > >> if u want to get 4 as output change the macro definition to #define > >> sqr(x) > >> (x*x) > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Algorithm Geeks" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group at > >> http://groups.google.com/group/algogeeks?hl=en. > >> > >> > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
