Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Wednesday 29 May 2013

C PROGRAM: TO CONVERT STRING FROM UPPERCASE TO LOWERCASE WITHOUT USING ANY LIBRARY FUNCTION

CODING:

#include<stdio.h>
#include<conio.h>
void main()
{
 char a[25];
 int i;
 clrscr();
 printf("Enter string in upper case: ");
 gets(a);
 printf("\n\nString in lower case: ");
 for(i=0;a[i]!='\0';i++)
  putchar(a[i]+32);
 getch();
}

C PROGRAM CODING
CODING
C PROGRAM OUTPUT
OUTPUT

For any query or suggestion please comment below...

No comments:

Post a Comment