Saturday, March 10, 2007
Tuesday, February 20, 2007
Monday, February 19, 2007
Tuesday, December 26, 2006
Wednesday, September 20, 2006
Thursday, September 07, 2006
program
string conversion best n compact n portable program.....
#include
#include
void main()
{
char a[5000],i;
clrscr();
printf("enter a string in any case or also mixed case but only A to Z or a to z \n");
scanf("%s",&a);
for(i=0;a!='\0';i++)
(a>='a' && a<='z')?(a=a-'a'+'A'):(a=a-'A'+'a');
printf("The conversion is \n %s",a);
getch();
}
#include
#include
void main()
{
char a[5000],i;
clrscr();
printf("enter a string in any case or also mixed case but only A to Z or a to z \n");
scanf("%s",&a);
for(i=0;a!='\0';i++)
(a>='a' && a<='z')?(a=a-'a'+'A'):(a=a-'A'+'a');
printf("The conversion is \n %s",a);
getch();
}