Sample Source Code for programming problems
Java, c, C++, win32, .net, C#, ASP, VB, ADO, and many more
Monday, July 28, 2008
C Source Code for reversing a string.
void ReverseString( char str[]) {
int start =0 ;int end = strlen(str)-1;
while(start < end) {
char ch = str[start];
str[start] = str[end];
str[end] = ch;
start++; end--;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Your Title
No comments:
Post a Comment