Intel Corporation Interview Question

How can you reverse a string in C?

Interview Answer

Anonymous

Jul 5, 2019

e = strlen (s)- 1 for (b = 0; b < c; b++) { r[b] = s[e]; e--; }