1
Guys, I’m making the following mistake:
incompatible types when assigning to type 'char [30] ' from type 'char *'
the code is as follows::
int main()
{
char *resultado[30];
float valor = 12735.98;
resultado=monet(valor); \\O AVISO DE ERRO É AQUI
printf("%s \n",resultado);
}
char *monet(float v){
static char *str[30];
sprintf(str,"R$ %2f",v);
return &str;
}
I can help you, I need to understand your reasoning a little better, give me some information about what you intend to do.
– user17270
Related question: http://answall.com/questions/16942
– pmg