void summe (short a, short b) { int ergebnis = a + b; printf("%i\n", ergebnis); }
summe(100, 200);
doch dann kommt immer die meldung beim gcc:
Code:
gcc.c:28: error: expected declaration specifiers or ‘...’ before numeric constant gcc.c:28: error: expected declaration specifiers or ‘...’ before numeric constant gcc.c:28: warning: data definition has no type or storage class gcc.c:28: error: conflicting types for ‘summe’ gcc.c:23: error: previous definition of ‘summe’ was here