CAP/MiniC/TP06/tests/provided/basic-functions/test_fun_call01.c

20 lines
203 B
C
Raw Permalink Normal View History

2024-10-06 19:58:11 +02:00
#include "printlib.h"
// Call of function with no parameter
int f(int x){
int y ;
y = 42;
return y;
}
int main(){
int val;
val = f(123);
println_int(val);
return 0;
}
// EXPECTED
// 42