I wonder if it is possible to use map
in C. I know it works in C ++, but in C it always gives compilation error. If someone has already used map in C, could you show me how to use it?
#include <map>
#include <stdio.h>
int main()
{
map<int, char[10]> m;
m[1] = "Um";
m[2] = "Dois";
m[4] = "quatro";
printf(m[4]); // não sei se precisa de mascara de dados
}