Files
seer/tests/helloarray/helloarray.cpp
T
2021-09-05 11:58:58 -05:00

27 lines
371 B
C++

#include <string.h>
#include <stdio.h>
#include <malloc.h>
int main (void) {
char* array = (char*)malloc(256);
for (int i=0; i<256; i++) {
array[i] = i;
}
int* int_array = (int*)malloc(256);
for (int i=0; i<64; i++) {
int_array[i] = i;
}
printf("Hello array!\n");
free(array);
free(int_array);
return 0;
}