Pointer to function [closed]

3

I would like to ask a question that looks better with an example:

I have the following code snippet in C:

char texto[]="String";
int (*ret)() = (int(*)())texto;

In this section above, I saw that a pointer to a function called ret is declared, but I did not understand what is attributed to it.

Would it be a casting? Type, does it get the address of texto[] and convert it to a function?

    
asked by anonymous 02.02.2016 / 01:49

0 answers