Microsoft interview question

Reverse a string

Interview Answers

Anonymous

Nov 6, 2012

void main() { int i=0; char arr[10]="abcd"; while(arr[i]!='\0') i++; for(i=i;i>=0;i--) printf("%c",arr[i]); getch(); }

1

Anonymous

Aug 21, 2010

Wrote a c code to reverse string in place.. that is without using temporary array