Skip to content
Snippets Groups Projects
Commit 7e6af7a0 authored by dario.genga's avatar dario.genga
Browse files

Add unfinished ex4

parent be611511
Branches
No related tags found
No related merge requests found
...@@ -5,9 +5,23 @@ ...@@ -5,9 +5,23 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <stdbool.h>
int main() { int main() {
const int ARRAY_LENGTH = 2;
int points_size;
scanf("%d", &points_size);
int *array = malloc(sizeof(int) * ARRAY_LENGTH);
// Get the values
for (int i = 0; i < ARRAY_LENGTH; i++) {
int value;
scanf("%d", &value);
array[i] = value;
}
printf("%d \n", 0);
// Free the memory and exit the program
free(array);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment