Virajsinh

A_PRM_10

Oct 7th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. /* Write a Program to check ASCII Value And Convert to Upper Case.  */
  2.  
  3. #include<conio.h>
  4. #include<stdio.h>
  5. void main()
  6. {
  7.     char *c,ch;
  8.     clrscr();
  9.     fflush(stdin);
  10.     c=&ch;
  11.     printf("\n Enter Char in Lower Case : ");
  12.     scanf("%c",&ch);
  13.     printf("\n Character : %c",*c);
  14.     printf("\n ASCII : %d", *c);
  15.     printf("\n Upper Case : %c", *c-32);
  16.     getch();
  17. }
Add Comment
Please, Sign In to add comment