@candh/

DynamicArray

C

No description

fork
loading
Files
  • main.c

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.48913574846002783","path":"main.c","file":{"path":"main.c","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKCWludCAqIGFyciA9IGNhbGxvYygzLCBzaXplb2YoaW50KSk7CglhcnJbMF0gPSAxOwoJYXJyWzFdID0gMjsKCWFyclsyXSA9IDM7CgoJcHJpbnRmKCIlZCIsIGFyclswXSk7CglwcmludGYoIiVkIiwgYXJyWzFdKTsKCXByaW50ZigiJWQiLCBhcnJbMl0pOwp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>

int main(void) {
	int * arr = calloc(3, sizeof(int));
	arr[0] = 1;
	arr[1] = 2;
	arr[2] = 3;

	printf("%d", arr[0]);
	printf("%d", arr[1]);
	printf("%d", arr[2]);
}