Ponteiros em C

Beschreibung

Mindmap am Ponteiros em C, erstellt von felipes1474 am 15/07/2013.
felipes1474
Mindmap von felipes1474, aktualisiert more than 1 year ago
felipes1474
Erstellt von felipes1474 vor fast 11 Jahre
56
1

Zusammenfassung der Ressource

Ponteiros em C
  1. Declaração do ponteiro: int *p; Endereço de uma variável: p = &c;
    1. p "aponta" para c
    2. Operações
      1. *ip = *ip + 10;
        1. y = *ip + 1;
          1. ++*ip; (*ip)++;
          2. Ponteiros para Arrays
            1. int *pa; pa = &a[0];

              Anmerkungen:

              • pa to point to element zero of a; that is, pa contains the address of a[0].
              1. pa = pa + 1;

                Anmerkungen:

                • If pa points to a particular element of an array, then by definition pa+1 points to the next element, pa+i points i elements after pa, and pa-i points i elements before. Thus, if pa points to a[0],
              2. Códigos com mesmo significado
                1. pa = &a[0]; e pa = a;
                  1. a[i]; e *(a + i);
                    1. a[i]; e pa[i];
                      1. a+i; e &a[i];
                      2. Atenção
                        1. Permitido
                          1. pa = a; e pa++;
                          2. Não Permitido
                            1. a = pa; e a++;
                        2. Ponteiros para Structs
                          1. struct node { int value; struct node *next; }
                            1. struct node { int value; struct node *left; struct node *right; }
                            Zusammenfassung anzeigen Zusammenfassung ausblenden

                            ähnlicher Inhalt

                            Die wichtigsten funktionelle Gruppen
                            Mirmo
                            Das Großes Deutsche Kuchen-Quiz
                            Jens Helfferich
                            Elektrischer Widerstand
                            Peter Kasebacher
                            Mitose
                            Cornelius Ges
                            Stilmittel Deutschabitur
                            Johanna DB
                            Genetik
                            Laura Overhoff
                            Imperialismus Zusammenfassung
                            Laura Overhoff
                            GESKO JOUR Karteikarten
                            Sascha Walter
                            Para 2016
                            Anne Käfer
                            Vetie Histopatho 2017
                            Anne Heyne
                            Vetie - Spezielle Pathologie 2021
                            Valerie Nymphe