Pergunta de entrevista da empresa Siemens

Coding Question: Write a function that reveres a string, using a double pointer.

Respostas da entrevista

Sigiloso

3 de fev. de 2020

Don't Over think. Essentially it's just a pointer to a pointer. char** x( char* my_str, int size) { char** double_ptr = new char*[size]; for( int i = 0; i < size; i++) { double_ptr[i] = my_str + (size - (i +1)); std::cout << *double_ptr[i]; } return double_ptr; }

6

Sigiloso

31 de jan. de 2021

There's quite an extended back and forth in actual interviews for questions like this, so nothing quite like real practice. The Prepfully Siemens Software Engineer experts have actually worked in this role, so they're able to do an honest-to-God accurate mock, which really puts you through the paces. prepfully.com/practice-interviews