Upper case To Lower Case Using String Function Tamil


#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
	char *a="TUTORJOES",*ptr;
	int n,i;
	clrscr();
	printf("\n Before Converting to Lower case :%s",a);
	ptr=strlwr(a);
	printf("\n After Converting to Lower case :%s",ptr);
	n=strlen(a);
	printf("\n String Lenght :%d\n",n);
	for(i=0;i<n;i++)
	{
		if(a[i]>=65&&a[i]<=90)
		{
			printf("%c",a[i]+32);
		}
		else
		{
			printf("%c",a[i]);
		}
	}
	getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming