Proof: Call a function with missing parameters in C
The snippet can be accessed without any authentication.
Authored by
Martin Wölzer
Edited
//file lib.c:
#include<stdio.h>
void test(int a, int b) {
printf("%d, %d\n", a, b);
}
//file main.c:
void test(int a);
int main() {
test(128);
}
//compile with `gcc -c -o lib.o lib.c; gcc lib.o main.c -o main`
//execute (each time we get a different output...):
./main
128, -1103440664
./main
128, 1346491064
So we are there:
https://raphlinus.github.io/assets/Anything_is_Possible_scaled.jpg
Please register or sign in to comment