/* struct s f(int x) wird compiliert als: void f(struct s *result, int x) */ // Definition einer Struktur typedef struct two_ch_struct { char ch1; char ch2; } two_ch; two_ch max( two_ch a, two_ch b ) { return (a.ch1>b.ch1) ? a : b; } int main(void) { // Hauptprogramm two_ch a,b,c; a.ch1 = a.ch2 = b.ch2 = 'A'; b.ch1 = 'B'; c = max( a, b ); }