This site features a collection of common technical interview questions gathered by a group of programmers who have been through, and given, lots of technical interviews. There is an emphasis on C++ and game programming technical interviews, but most of the questions are relevant to any technical interview.
1 Comment so far
Leave a comment
Not pretty but easy
void reverseString(char *aString)
{
int iEnd = strlen(aString);
iEnd–; // need to offset last character
int iStart = 0;
while( iEnd > iStart )
{
char c = aString[iStart];
aString[iStart] = aString[iEnd];
aString[iEnd] = c;
iEnd–;
iStart++;
}
}
By stephane on 03.20.08 2:48 pm | Permalink
Leave a comment
If you are including code in your comment, place it within a <div class='code'></div> tag for better formatting.