Friday, June 1, 2012

INPUT CONVERTS TO ASCII


 PROGRAM TO CONVERT ANY INPUT TO ITS ASCII VALUE:-




#include<stdio.h>
main()
{
         char ch;
         printf(" Enter the character ");
         scanf("%c",&ch);
         printf(" ASCII value of %c is %d ",ch,ch);
}





No comments:

Post a Comment