1
0
LearningCPP/main.cpp

16 lines
199 B
C++
Raw Normal View History

2022-08-12 14:59:08 +01:00
#include <iostream>
2022-08-13 00:34:25 +01:00
void test(int*);
int num{ 0 };
2022-08-12 14:59:08 +01:00
int main()
{
2022-08-13 00:34:25 +01:00
test(&num);
2022-08-12 14:59:08 +01:00
return 0;
}
2022-08-13 00:34:25 +01:00
void test(int* execNum) {
std::cout << ++(*execNum) << ".";
test(execNum);
}