struct test3 { int i; char c; char text[512]; test2() { *text = 0; i = 0; c = 0; } // konstructor void print() { printf("%i, %s, %s\n", i, &c, text); } } test3 varstruct3; varstruct.print(); varstruct.i = 10; varstruct.print(); void function3(const test3 * ptr) // pointer { test3->print(); } void funbction3(const test3 & ref) // referenz { ref.print(); }