Qualcomm Interview Question

Swap the order of a string without using indexes.

Interview Answers

Anonymous

Jul 13, 2017

Small correction to above code end = src + strlen(src) - 1;

Anonymous

Oct 27, 2011

guess it is string reversal with out using `[]' void reverse(char * src) { char * end; end = strlen(src) - 1; char t; while(src < end) { t = * src; *src = *end; *end = t; src++; end--; } }