Pergunta de entrevista da empresa Check Point Software Technologies

SECOND QUESTION: You short function in c that returns a string (char*) and you need first to say what is the problem eith it. So the problem is that the returned string is not aloccated. So you need to allocate with malloc, and mention that the function caller needs to free the returned value, or you can just get the string as additional parameter. Finaly the hard part is to solve it with a global parameter (the string) and locks and keys so no one else can use the string.