Frage im Vorstellungsgespräch bei Microsoft

Reverse a string

Antworten zu Vorstellungsgespräch

Anonym

6. Nov. 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

Anonym

21. Aug. 2010

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