I've created a dynamic array using malloc, while initializing it, I'm getting an error. What am I doing wrong here?
float* data_input = malloc(4 * sizeof(float));
data_input = {1.2, 2.4, 3.2, 4.5};
Error:
model.c: In function ‘main’:
model.c:9:18: error: expected expression before ‘{’ token
9 | data_input = {1.2, 2.4, 3.2, 4.5};