Snap Interview Question

Explain what this function does to me (at the blackboard, without any support): void func(char* a, char* b) { while(*a++ = *b++) {} }

Interview Answer

Anonymous

Dec 17, 2024

this is a memory copy function, just copies one string variable to another