C program to accept a string and convert it in to lower case using pointer
#include
#include
void main()
{
char str[50];
int i;
clrscr();
puts("Enter string:");
gets(str);
for(i=0;*(str+i)!='\0';++i)
{
if(*(str+i)>='A' && *(str+i)<='Z')
*(str+i)=*(str+i)+32;
}
puts(str);
getch();
}