Sunday, May 18, 2008

wrong spelling wrong!

here are some site with domain names almost the same

  • jjot.com and jjots.com
  • philippine.org and philippines.org
  • damn.net and damns.net
  • troubles.com and troubles.com
  • and some variations of friendster like friendster,friedstar.
so next time be careful of spelling coz where ever you are wrong spelling would never be correct!

Saturday, May 3, 2008

c code to reverse a string

/*
to reverse a string
*/

#include
#include
#include

void stringReverse(char string[],int length);

main()
{
int length;
char text[80];

printf("please enter the text:");
gets(text);
length=strlen(text);
return EXIT_SUCCESS;
}


void stringReverse(char string[], int length)
{
int ctr=length-1;

while(ctr>=0)
printf("%c", string[ctr]);
printf("\n");
return;
}