Initial commit

This commit is contained in:
2023-05-22 23:28:51 -03:00
commit 5c1403aa91
467 changed files with 18649 additions and 0 deletions

BIN
Labs/Lab2/Lab2.pdf Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

26
Labs/Lab2/lab2.c Normal file
View File

@ -0,0 +1,26 @@
/* p1.c */
#include <stdio.h>
#include <stdlib.h>
int g1(int a, int b){
int c = (a + b) * b;
printf("g1: %d %d %d \n", a, b, c);
printf("a's address is %p, b's address is %p, c's address is %p\n", &a, &b, &c);
return c;
}
int g2(int a, int b){
int c = g1(a + 3, b - 11);
printf("g2: %d %d %d \n", a, b, c);
printf("a's address is %p, b's address is %p, c's address is %p\n", &a, &b, &c);
return c - b;
}
int main (int argc, char** argv){
int a = 5;
int b = 17;
int c = g2(a - 1, b * 2);
printf("main: %d %d %d \n", a, b, c);
printf("a's address is %p, b's address is %p, c's address is %p\n", &a, &b, &c);
return EXIT_SUCCESS;
}