Responsive Ads Here

Wednesday, February 4, 2015

Ctype header file function

 

1               toupper ()

 

#include<stdio.h>
#include<ctype.h>
int main()
{
    char ch;
    char  a;
    ch=getchar();
 
    a=toupper(ch);
 
    printf("%c",a);
    return 0;
}

 


2      tolower ()      


#include<stdio.h>
#include<ctype.h>
int main()
{
    char ch;
    ch=getchar();
    char  a;
    a=tolower(ch);
    printf("%c",a);
    return 0;
}


 


3    toascii ()    


#include<stdio.h>
#include<ctype.h>
int main()
{
    char ch;
    ch=getchar();
    int a;
    a=toascii(ch);
    printf("%d",a);
    return 0;
}

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...