Wednesday, 30 September 2015

Write a program for use of putchar( ) and getchar( ) function.

  
   
#include<stdio.h>
#include<conio.h>
void main()
{
    char c;
    clrscr();
    printf("enter any one lowercase letter\n");
    c=getchar();
    printf("lowercase character = ");
    putchar(c);
    printf("converted to uppercase character = ");
    putchar(c-32);
    getch();
} 

No comments:

Post a Comment