Test2
This commit is contained in:
parent
c952bb14e0
commit
4194fc9686
37
Elipsen_Prototypen.c
Normal file
37
Elipsen_Prototypen.c
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int vielmax(int count, ...);
|
||||||
|
va_list args;
|
||||||
|
va_start(args, count);
|
||||||
|
|
||||||
|
int max = va_arg(args, int);
|
||||||
|
|
||||||
|
for (int i = 0; i < count; i++) {
|
||||||
|
int num = va_arg(args, int);
|
||||||
|
if (num>max) {
|
||||||
|
max = num;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
va_end(args);
|
||||||
|
return max;
|
||||||
|
}
|
||||||
|
int main() {
|
||||||
|
|
||||||
|
printf("Testprogramm fuer Funktion vielmax ()");
|
||||||
|
printf("=====================================\n\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Created by Lennart Pecher on 04.04.25.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Lennart Pecher on 04.04.25.
|
||||||
|
//
|
Loading…
x
Reference in New Issue
Block a user