*int var without initialization gives junk values to var
*
*Doing its '&' with 0 will give 0.
*
*In other case you are normally assigning it some value.*
regards
- Sumit Kumar Pathak
(Sumit/ Pathak/ SKP ...)
*Smile is only good contagious thing.*
*Spread it*!!!!!



On Fri, Sep 9, 2011 at 4:31 PM, siddharam suresh <[email protected]>wrote:

> is there any difference b/w
>
> int var;
> var=0;
>
> and
>
> int var;
> var & =0;
>
> both codes yield the same value right?
>
> Thank you,
> Sid.
>
>
>
>  --
> 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.

Reply via email to