Pergunta de entrevista da empresa Samsung Electronics America

Some questions regarding pointers and memory management. then you will be given a simple code and asked you to optimize it