Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Write a fucntion that will reverse a string.
Write a fucntion that will reverse a string.
✍: Guest
char *strrev(char *s)
{
int i = 0, len = strlen(s);
char *str;
if ((str = (char *)malloc(len+1)) == NULL)
/*cannot allocate memory */
err_num = 2;
return (str);
}
while(len)
str[i++]=s[–len];
str[i] = NULL;
return (str);
}
2012-04-11, 3013👍, 0💬
Popular Posts:
How can you implement MVC pattern in ASP.NET? The main purpose using MVC pattern is to decouple the ...
How To Write a Query with a Right Outer Join? - Oracle DBA FAQ - Understanding SQL SELECT Query Stat...
Is There Any XSD File to Validate Atom Feed Files? - RSS FAQs - Atom Feed Introduction and File Gene...
Example of using Regular Expressions for syntax checking in JavaScript ... var re = new RegExp("^(&a...
How will you freeze the requirement in this case? What will be your requirement satisfaction criteri...