0x20 means its a hexa decimal number and the decimal value is 32. Calculation is : 16 power of 0 + 2 * 16 power of 1 = 32
Thanks, Mani http://www.sanidapa.com On Tue, Jun 21, 2011 at 12:43 PM, Srinivasan Sivaramachandran < [email protected]> wrote: > Hexadecimal representation, 20h equals 32d > > Srinivasan Sivaramachandran > On 21-Jun-2011 12:40 PM, "sahil" <[email protected]> wrote: > > #include<stdio.h> > > int main() > > { > > > > int i=32, j=0x20 ,k,l,m; > > k= i|j; > > l=i&j; > > m= k^ l; > > printf("%d %d %d %d %d\n",i,j,k,l,m); > > return 0; > > > > } > > > > > > output: > > 32 32 32 32 0 > > > > please explain me ... j=0x20;....wht does it mean.....? > > and hoe ite value is 32...??? > > > > -- > > 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. > -- Thanks & Regards, Mani http://www.sanidapa.com - The music Search engine -- 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.
