Revision [5380]

This is an old revision of CConst made by ToBo on 2008-09-14 16:05:39.

 

Const


1. Konstante Variable

const int * x;


2. Konstante Pointer

int * const x;



3. Verwenung von const in Funktionen


int berechne(const int a)
{
    return (a*5+a);
};


Effekt:
  • Der Compiler kann aufgrund dieser Information ggf. besser optimieren! Gehen sie großzügig damit um.

Voraussetzung:
  • Sie wollen die Variable nicht innerhalb der Funktion ändern





Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki