i think 7
as PRODUCT(i+1) will be evaluated as
i+1*i+1
at i=3 which gives j=7

On Mon, Jul 25, 2011 at 6:06 PM, Arshad Alam <[email protected]> wrote:

> what should be the output of the following and how..
>
>
> #include<stdio.h>
> #include<conio.h>
> #define PRODUCT(x) (x*x)
> void main()
> {
>     clrscr();
>     int i=3,j;
>     j=PRODUCT(i+1);
>     printf("\n%d",j);
>     getch();
> }
>
> --
> 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.
>



-- 
Anurag Aggarwal
4th Year B.E.
Netaji Subhas Institue of Technology
Delhi

-- 
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.

Reply via email to