Write a program to find a ASCII value of a character in C
#include<stdio.h> #include<conio.h> main() { int n; char c; printf("Enter any character: "); scanf("%c",&c); printf("\n the ascci value of character is:%d",c); return 0; }
void main() { int e; char ch; clrscr(); printf("\n Enter a character : "); scanf("%c",ch); e=ch; printf("\n The ASCII value of the character is : %d",e); getch(); }
#include
ReplyDeleteint main()
{
int i;
i=0;
do
{
printf("%d %c \n",i,i);
i++;
}
while(i<=255);
}
Dajen, yours program will print all characters ASCII value but not a single character that I want
ReplyDeleteI think you are new comer in blogs world. and not perfect for any blog
ReplyDeleteWhat do you mean? Do you know program ? Or copy past programmer ??
ReplyDeletevoid main()
ReplyDelete{
int e;
char ch;
clrscr();
printf("\n Enter a character : ");
scanf("%c",ch);
e=ch;
printf("\n The ASCII value of the character is : %d",e);
getch();
}
Flo mi program dat I comnt. I think u sud lrn mor mor & mor program
ReplyDelete