Initial commit
This commit is contained in:
10
Tests/Test2/test.c
Normal file
10
Tests/Test2/test.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int i =2, j;
|
||||
int *p, *q;
|
||||
p = &i;
|
||||
q = &j;
|
||||
*p = *q;
|
||||
i = i + 1;
|
||||
printf("%d\n", *q);
|
||||
}
|
11
Tests/Test2/test2.c
Normal file
11
Tests/Test2/test2.c
Normal file
@ -0,0 +1,11 @@
|
||||
int main() {
|
||||
p(2, 7, 1);
|
||||
}
|
||||
void p(int i, int j, int n) {
|
||||
printf("%d %d %d\n", i, j, n);
|
||||
if (j == 0) return;
|
||||
if (j % 2 == 0)
|
||||
p(i, j / 2, n);
|
||||
else
|
||||
p(i,j-1,n*i);
|
||||
}
|
BIN
Tests/Test2/test2.exe
Normal file
BIN
Tests/Test2/test2.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user