#include <stdio.h>
#include <stdlib.h>
#define MAX 30
struct CARRO{
int id;
char fabricante[MAX];
char modelo[MAX];
int ano;
char cor[MAX];
int preco;
};
int main() {
int qtd;
struct CARRO
*carros
= malloc(qtd
* sizeof(struct CARRO
)); free(carros
); //só para usar a variável, neste caso não precisa }
//https://pt.stackoverflow.com/q/215819/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2RlZmluZSBNQVggMzAKCnN0cnVjdCBDQVJST3sKCWludCBpZDsKCWNoYXIgZmFicmljYW50ZVtNQVhdOwoJY2hhciBtb2RlbG9bTUFYXTsKCWludCBhbm87CgljaGFyIGNvcltNQVhdOwoJaW50IHByZWNvOwp9OwoKaW50IG1haW4oKSB7CglpbnQgcXRkOwoJc2NhbmYoIiVkIiwgJnF0ZCk7CglzdHJ1Y3QgQ0FSUk8gKmNhcnJvcyA9IG1hbGxvYyhxdGQgKiBzaXplb2Yoc3RydWN0IENBUlJPKSk7CglmcmVlKGNhcnJvcyk7IC8vc8OzIHBhcmEgdXNhciBhIHZhcmnDoXZlbCwgbmVzdGUgY2FzbyBuw6NvIHByZWNpc2EKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjE1ODE5LzEwMQ==