[Linux-programlama] Re: pointer

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: ahmet demir (turkosx@gmail.com)
Date: Sun 16 Jul 2006 - 15:21:24 GMT


b sadece d1 in degerini bir artirir

2006/7/16, Cafer Þimþek <cfb@cafer.org>:
> Selam,
> "ahmet demir" <turkosx@gmail.com> writes:
>
> > #include <stdio.h>
> > main()
> > {
> > int *p1;
> > int d1,d2;
> > d1=10;
> > d2=20;
> > p1=&d1;
> >
> > printf("%d\n",*p1);
> > p1++;
> ^^^^^
>
> Bu göstericinin gösterdiði adresin bir int boyu kadar ilerisini iþaret
> etmesini saðlar. Aldýðýnýz deðer aslýnda çöp bir deðerdir. Bunun
> yerine:
>
> (*p1)++;
>
> Deneyin.
>
>
> > printf("%d\n",*p1);
> > }
>
> Sevgiler.
>
> --
> sometimes you're up
> sometimes you're down (jem)
>
> Cafer 'cfb' Þimþek
> http://cafer.org
>
>

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.