answersLogoWhite

0


Best Answer

#include<iostream.h>

void main()

{

int x;

char y;

cin>>y;

x=y;

cout<<"ASCII VALUE"<<x;

}

Or rather:

for (c='A'; c<='Z'; ++c) printf ("'%c' %d 0x%x\n", c, c, c);

for (c='a'; c<='z'; ++c) printf ("'%c' %d 0x%x\n", c, c, c);

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

String x = "Sample";

for(int i = 0; i < x.length(); i++)

printf("%c = %d\n", x[i], x[i]);

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

int main (void)

{

puts ("ABCDEFGHIJKLMNOPQRSTUVWXYZ");

puts ("abcdefghijklmnopqrstuvwxyz");

return 0;

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a program in C language to get the ASCII values of all the letters of the alphabet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the definition of symbolic constants in c language?

constants are values that does not chnage through out the program exceution..


In primary sources such as John Adams's letters to Abigail certain turns of phrase and language support?

In primary sources such as John Adams's letters to Abigail certain turns of phrase and language support his specific values.


What is the purpose of literals in assembly language?

literals are used to store constant values which are not changed even after program execution


In primary sources such as John Adams's letters to Abigail John's specific values and attitudes are demonstrated through?

His language choices.


What are non alphanumeric values?

!@#$%^&*() basically they are any characters that do not contain the value of a number or a letter.AnswerIt is data formatting that includes non-standard ASCII characters (characters not included on a standard English-language keyboard) All characters besides:0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZand those letters with accents and diacritical marksand those letters in other alphabet systems


Where can SQL tools be found online?

SQL are Database Developers allowing one to produce database tables and values. Ideone is a program that also allows one to change the language as well as the values and program the data into the relevant fields.


How do you sort letters in java?

Let us assume by "alphabet letters arrays" you mean you have an array of chars. char[] letters = //some character array Arrays.sort(letters); // Letters is now sorted. // Note that letters will be sorted according to the ASCII values // of the chars. This means that all capital letters will be sorted // before lower case. ('Z' will come before 'a')


What is the roman number for 1213?

The number 1213 written in roman numerals would appear as MCCXII. Roman numerals is a numeric system of ancient Rome it uses a combination of letters from the Latin alphabet to signify values.


Does the Arabic alphabet have religious significance in Islam like the Hebrew alphabet in Judaism?

Yes, although the bond is not exactly the same. Judaism ascribes words special meanings based on the numerical values of the letters in the words called gematria. Gematria does not exist in Arabic. The Islamic fascination with Arabic comes from the fact that the Qur'an is exclusively in Arabic as well as the beautiful calligraphy used that accentuates the letters' shapes.


What is numerical?

Roman numerals are a numeral system of ancient Rome based on letters of the alphabet, which are combined to signify the sum of their values.


What are characters in c language?

1. integer values between 0 and 255 (if unsigned) 2. integer values between -128 and 127 (if signed) 3. letters, digits, symbols like a-zA-Z0-9;,.?: etc


what is roman numeral?

Roman numerals are a numeral system of ancient Rome based on letters of the alphabet, which are combined to signify the sum of their values.