The full form of ASCII is the American Standard Code for information interchange. It is a character encoding scheme used for electronics communication. Each character or a special character is represented by some ASCII code, and each ascii code occupies 7 bits in memory.
In C programming language, a character variable does not contain a character value itself rather the ascii value of the character variable. The ascii value represents the character variable in numbers, and each character variable is assigned with some number range from 0 to 127. For example, the ascii value of 'A' is 65.
In the above example, we assign 'A' to the character variable whose ascii value is 65, so 65 will be stored in the character variable rather than 'A'.
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char ch;
clrscr(); //to clear the screen
printf(“Enter any character:”);
scanf(“%c”,&ch);
a=ch;
printf(“ASCII value of %c is %d”,ch,a);
getch(); //to stop the screen
}
ReplyDeleteThanks for this information. it is helpfull and worthy
Laptop Repair Center offers quality service for your laptop at a reasonable cost. We offer doorstep support, 24*7 onsite support, repair all brand laptops, have an expert team for onsite support, and much more. for more contact us on 7291903784
laptop repair center in Delhi
thank u for this valuable information..very helpful
ReplyDeleteFamily Chaat is one of the best selling north indian food booth such as Pani Puri, Aloo Tikki Chaat, Bhalla Papari, Gol Gappa Chaat, Cholay Tikki, Papri chaat, Samosa cholay, Samosa chaat, Raj kachori chaat, Pao Bhaji, Vada Pao, and Samosa Bada Pao. Family Chaat is made available to every customer with unique flavor, quality taste, and hygiene and we are the best chaat provider in India.
street food indian
i found it very helpful. thank u
ReplyDeleteMast Banarasi Paan is one of the best selling paan such as Rajwadi paan, Laddu paan, Choclate Paan, Fire paan, Silver paan. Mast Banarasi Paan is made available to every customer with unique flavor, quality taste, and hygiene and we are the best paan provider in India.
banarasi paan