// Ex610.cc // Sec. 6.1 of lecture // Pointer declaration #include #include main() { struct Student { long long int matrikel; int skz; char name[30], vorname[20]; }; char *cp; // pointer on char int x, *px; // int-variable, pointer on int float *fp[20]; // array of 20 pointers on float float *(fap[20]); // pointer on an array of 20 float Student *ps; // pointer on structure Student char **ppc; // pointer on pointer of char struct Student2 { long long int matrikel; int skz; char *pname, *pvorname; }; cout << endl; cout << " Size px : " << sizeof(px) << endl; cout << " Value px : " << px << endl; // px is undefined (LINUX-gcc) // or px = 0 = 0x0 (SGI-CC) px = 0; if ( px == 0) { cout << endl << "px == NULL " << px << endl; } }