home *** CD-ROM | disk | FTP | other *** search
- /*********************************************************************
- * CH09_05.C printf(), pointeurs et tableaux *
- *********************************************************************/
-
- #include<stdio.h>
-
- main( void)
- {
- int tab[]= { 0, 1, 2}, *ptr= tab;
-
- printf(" adresse tab: %d", tab);
- printf("\n rΘfΘrence: %d , pointeur: %d\n", ptr, *ptr);
-
- printf("\n rΘfΘrence: %d", ptr++);
- printf("\n pointeur: %d", *ptr);
-
- ptr= tab;
- printf("\n\n rΘfΘrence: %d , pointeur: %d", ptr++, *ptr);
- printf("\n rΘfΘrence: %d , pointeur: %d", ptr, *ptr);
-
- }
- /*
-
- adresse tab: 6750
- rΘfΘrence: 6750 , pointeur: 0
-
- rΘfΘrence: 6750
- pointeur: 1
-
- rΘfΘrence: 6750 , pointeur: 0
- rΘfΘrence: 6752 , pointeur: 1 */
-
-