![]() |
Biggest of four Nos using Macro..
Code: C
|
Re: Biggest of four Nos using Macro..
hey guys ':' followed by '(' is acting as sad smiley so pls whereever u se smiley replace it by ':' follwed by '(' ...
Thanks Nagesh |
Re: Biggest of four Nos using Macro..
I have edited that for no smiley as well as proper formating. Here is the code snippet again for you
Code:
#define f(a,b,c,d) (a>b?(a>c?(a>d?a:d):(c>d?c:d)):(b>c?(b>d?b:d):(c>d?c:d))) |
Re: Biggest of four Nos using Macro..
thanks shabbir..
|
Re: Biggest of four Nos using Macro..
good one
|
Re: Biggest of four Nos using Macro..
Can you make it generic for any number ( not only for four).
|
Re: Biggest of four Nos using Macro..
Just try and you can do taking a sort of template not exactly template.
Because i need this requirement... |
Re: Biggest of four Nos using Macro..
Very good info for me.
|
Re: Biggest of four Nos using Macro..
good one
|
Re: Biggest of four Nos using Macro..
good one
|
| All times are GMT +5.5. The time now is 20:17. |