Pregunta de entrevista de Siemens

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

Respuestas de entrevistas

Anónimo

3 feb 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

Anónimo

31 ene 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