Update recursive test

This commit is contained in:
QuangNguyenMinh123
2025-11-26 20:24:39 +07:00
parent e2fd1c072f
commit 07cfd0ab69
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -77,12 +77,15 @@ int factorial(int n) {
}
};
struct familyStruct b;
family.numberOfNumber ++;
family.numberOfNumber ++;
family.numberOfNumber ++;
int abc = 0;
int abc = 0, a = 100;
abc ++;
a ++;
abc *= 2;
a /= 2;
family.dad.childArr[0].age ++;
family.dad.childArr[1].name = "childTest " + std::to_string(abc);
family.mom.childArr[1].age ++;
+4
View File
@@ -86,6 +86,10 @@ struct familyStruct globalStruct = {
int main() {
globalStruct.numberOfNumber =0;
int a = 10, b = 3;
a ++;
b ++;
a *= 2;
b *= 2;
pid_t pid = getpid();
std::cout << "Process ID: " << pid << std::endl;
while (globalStruct.numberOfNumber < 100)