Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a Program to check ASCII Value And Convert to Upper Case. */
- #include<conio.h>
- #include<stdio.h>
- void main()
- {
- char *c,ch;
- clrscr();
- fflush(stdin);
- c=&ch;
- printf("\n Enter Char in Lower Case : ");
- scanf("%c",&ch);
- printf("\n Character : %c",*c);
- printf("\n ASCII : %d", *c);
- printf("\n Upper Case : %c", *c-32);
- getch();
- }
Add Comment
Please, Sign In to add comment