C/C++: Décrémenter un pointer avec l’opérateur ‘–‘

Author:

 pointeur, adresse
Download

#include 
using namespace std;
const int Length = 3;

int main ()
{
   int tab[] = {10, 9, 8, 7, 6
                ,5, 4, 3, 1, 0};
   int size=sizeof(tab)/sizeof(tab[0]);

   int* pointeur_int = &tab[size - 1];
   int i = size - 1;
   cout <<"Index               Adresse             Valeur"<= &tab[0])
   {
      cout <
    

Leave a Reply

Your email address will not be published. Required fields are marked *