1
0

Test undefined return.

This commit is contained in:
Captain ALM 2022-08-13 19:02:27 +01:00
parent 7490abcfbb
commit 52d8787bc4
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -1,15 +1,11 @@
#include <iostream> #include <iostream>
void test(int*); int test();
int num{ 0 };
int main() int main()
{ {
test(&num); std::cout << test();
return 0;
} }
void test(int* execNum) { int test() {
std::cout << ++(*execNum) << ".";
test(execNum);
} }