2 Commits

Author SHA1 Message Date
  Elies Tali 696c16c9d5 Merge branch 'master' of https://git.etud.insa-toulouse.fr/tali/ProjetSI 3 years ago
  Elies Tali f4085f7d19 Commit pour merge 3 years ago
1 changed files with 9 additions and 14 deletions
  1. 9
    14
      Fichiers_Tests/progC

+ 9
- 14
Fichiers_Tests/progC View File

@@ -1,20 +1,15 @@
1
-int g(int tab[]){
2
-	tab[1] = 10;
3
-	printf(tab[0]);
4
-	stop(15);
5
-	return 2;
1
+int g(int o){
2
+	int j = o * 2;
3
+	return j;
6 4
 }
7 5
 
8
-int f(int p[]){
9
-	p[0] = 1;
10
-	g(p);
11
-	return 1;
6
+
7
+int f(int p){
8
+	int y = p + 2;
9
+	return y - 5 + g(1);
12 10
 }
13 11
 
14 12
 int main(){
15
-	int a;
16
-	int c = fonction(3);
17
-	stop(3);
18
-	printf(c);
19
-	printf(c);
13
+	int a = 7;
14
+	int c = f(a);
20 15
 }

Loading…
Cancel
Save