output will be 2
because of you subtract 2 addresses it gives (diffrence of
addresses)/sizeof(datatype)
(71-60)/4=2



On 13/10/2012, bharat b <bagana.bharatku...@gmail.com> wrote:
> #include<stdio.h>
> main()
> {
>  int *i,*j;
>  i=(int*)60;
>  j=(int*)71;
>  printf("%d",j-i);
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> 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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to