ఒక అక్షరం యొక్క ASCII విలువను మీరు ఎలా కనుగొంటారు?

ఒక అక్షరం యొక్క ASCII విలువను మీరు ఎలా కనుగొంటారు?

'ASCII' అంటే 'అమెరికన్ స్టాండర్డ్ కోడ్ ఫర్ ఇన్ఫర్మేషన్ ఇంటర్‌ఛేంజ్'. ASCII కోడ్‌లు కంప్యూటర్‌లు, టెలికమ్యూనికేషన్ పరికరాలు మరియు ఇతర పరికరాలలో టెక్స్ట్‌ను సూచిస్తాయి. ASCII సమాచారాన్ని ప్రామాణిక డిజిటల్ ఫార్మాట్‌లుగా మారుస్తుంది, ఇది డేటాను ప్రాసెస్ చేయడానికి, డేటాను నిల్వ చేయడానికి మరియు ఇతర కంప్యూటర్‌లతో సమర్థవంతంగా కమ్యూనికేట్ చేయడానికి కంప్యూటర్‌లను అనుమతిస్తుంది.





ఈ వ్యాసంలో, C ++, పైథాన్, జావాస్క్రిప్ట్ మరియు C ఉపయోగించి అక్షరం యొక్క ASCII విలువను ఎలా కనుగొనాలో మీరు నేర్చుకుంటారు.





కంప్యూటర్‌లో cpu ఏమి చేస్తుంది

సమస్యల నివేదిక

మీకు ఒక అక్షరం ఇవ్వబడింది మరియు మీరు ఆ అక్షరం యొక్క ASCII విలువను ముద్రించాలి.





ఉదాహరణ 1 : ఇచ్చిన పాత్ర 'M' గా ఉండనివ్వండి.

'M' యొక్క ASCII విలువ 77.



అందువలన, అవుట్‌పుట్ 77.

ఉదాహరణ 2 : ఇచ్చిన పాత్ర 'U' గా ఉండనివ్వండి.





'U' యొక్క ASCII విలువ 85.

అందువలన, అవుట్‌పుట్ 85.





ఉదాహరణ 3 : ఇచ్చిన పాత్ర 'O' గా ఉండనివ్వండి.

'O' యొక్క ASCII విలువ 79.

అందువలన, అవుట్పుట్ 79.

మీరు పూర్తి ASCII పట్టికను చూడాలనుకుంటే, మీరు తనిఖీ చేయవచ్చు asciitable వెబ్‌సైట్ .

సంబంధిత: ASCII మరియు యూనికోడ్ టెక్స్ట్ మధ్య తేడా ఏమిటి?

ఒక అక్షరం యొక్క ASCII విలువను కనుగొనడానికి C ++ ప్రోగ్రామ్

మీరు ఉపయోగించి అక్షరం యొక్క ASCII విలువను కనుగొనవచ్చు int () C ++ లో. అక్షరం యొక్క ASCII విలువను ముద్రించడానికి C ++ ప్రోగ్రామ్ క్రింద ఉంది:

నా యూట్యూబ్ ఎందుకు పనిచేయదు
// C++ program to find the ASCII value of a character
#include
using namespace std;
int main()
{
char ch1 = 'M';
char ch2 = 'U';
char ch3 = 'O';
char ch4 = 'm';
char ch5 = 'a';
char ch6 = 'k';
char ch7 = 'e';
char ch8 = 'u';
char ch9 = 's';
char ch10 = 'e';
char ch11 = 'o';
char ch12 = 'f';
// int() is used to convert character to its ASCII value
cout << 'ASCII value of ' << ch1 << ' is ' << int(ch1) << endl;
cout << 'ASCII value of ' << ch2 << ' is ' << int(ch2) << endl;
cout << 'ASCII value of ' << ch3 << ' is ' << int(ch3) << endl;
cout << 'ASCII value of ' << ch4 << ' is ' << int(ch4) << endl;
cout << 'ASCII value of ' << ch5 << ' is ' << int(ch5) << endl;
cout << 'ASCII value of ' << ch6 << ' is ' << int(ch6) << endl;
cout << 'ASCII value of ' << ch7 << ' is ' << int(ch7) << endl;
cout << 'ASCII value of ' << ch8 << ' is ' << int(ch8) << endl;
cout << 'ASCII value of ' << ch9 << ' is ' << int(ch9) << endl;
cout << 'ASCII value of ' << ch10 << ' is ' << int(ch10) << endl;
cout << 'ASCII value of ' << ch11 << ' is ' << int(ch11) << endl;
cout << 'ASCII value of ' << ch12 << ' is ' << int(ch12) << endl;

return 0;
}

అవుట్‌పుట్:

ASCII value of M is 77
ASCII value of U is 85
ASCII value of O is 79
ASCII value of m is 109
ASCII value of a is 97
ASCII value of k is 107
ASCII value of e is 101
ASCII value of u is 117
ASCII value of s is 115
ASCII value of e is 101
ASCII value of o is 111
ASCII value of f is 102

సంబంధిత: ASCII టెక్స్ట్ అంటే ఏమిటి మరియు ఇది ఎలా ఉపయోగించబడుతుంది?

ఒక పాత్ర యొక్క ASCII విలువను కనుగొనడానికి పైథాన్ ప్రోగ్రామ్

మీరు ఉపయోగించి అక్షరం యొక్క ASCII విలువను కనుగొనవచ్చు పదాలు () పైథాన్‌లో. ఒక అక్షరం యొక్క ASCII విలువను ముద్రించడానికి పైథాన్ ప్రోగ్రామ్ క్రింద ఉంది:

# Python program to find the ASCII value of a character
ch1 = 'M'
ch2 = 'U'
ch3 = 'O'
ch4 = 'm'
ch5 = 'a'
ch6 = 'k'
ch7 = 'e'
ch8 = 'u'
ch9 = 's'
ch10 = 'e'
ch11 = 'o'
ch12 = 'f'
# ord() is used to convert character to its ASCII value
print('ASCII value of', ch1, 'is', ord(ch1))
print('ASCII value of', ch2, 'is', ord(ch2))
print('ASCII value of', ch3, 'is', ord(ch3))
print('ASCII value of', ch4, 'is', ord(ch4))
print('ASCII value of', ch5, 'is', ord(ch5))
print('ASCII value of', ch6, 'is', ord(ch6))
print('ASCII value of', ch7, 'is', ord(ch7))
print('ASCII value of', ch8, 'is', ord(ch8))
print('ASCII value of', ch9, 'is', ord(ch9))
print('ASCII value of', ch10, 'is', ord(ch10))
print('ASCII value of', ch11, 'is', ord(ch11))
print('ASCII value of', ch12, 'is', ord(ch12))

అవుట్‌పుట్:

ASCII value of M is 77
ASCII value of U is 85
ASCII value of O is 79
ASCII value of m is 109
ASCII value of a is 97
ASCII value of k is 107
ASCII value of e is 101
ASCII value of u is 117
ASCII value of s is 115
ASCII value of e is 101
ASCII value of o is 111
ASCII value of f is 102

ఒక పాత్ర యొక్క ASCII విలువను కనుగొనడానికి జావాస్క్రిప్ట్ ప్రోగ్రామ్

మీరు ఉపయోగించి అక్షరం యొక్క ASCII విలువను కనుగొనవచ్చు string.charCodAt (0) జావాస్క్రిప్ట్‌లో. ఒక అక్షరం యొక్క ASCII విలువను ముద్రించడానికి జావాస్క్రిప్ట్ ప్రోగ్రామ్ క్రింద ఉంది:

const ch1 = 'M';
const ch2 = 'U';
const ch3 = 'O';
const ch4 = 'm';
const ch5 = 'a';
const ch6 = 'k';
const ch7 = 'e';
const ch8 = 'u';
const ch9 = 's';
const ch10 = 'e';
const ch11 = 'o';
const ch12 = 'f';

// string.charCodeAt(0) is used to convert character to its ASCII value
document.write('ASCII value of ' + ch1+ ' is ' + ch1.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch2+ ' is ' + ch2.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch3+ ' is ' + ch3.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch4+ ' is ' + ch4.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch5+ ' is ' + ch5.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch6+ ' is ' + ch6.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch7+ ' is ' + ch7.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch8+ ' is ' + ch8.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch9+ ' is ' + ch9.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch10+ ' is ' + ch10.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch11+ ' is ' + ch11.charCodeAt(0) + '
');
document.write('ASCII value of ' + ch12+ ' is ' + ch12.charCodeAt(0) + '
');

అవుట్‌పుట్:

ASCII value of M is 77
ASCII value of U is 85
ASCII value of O is 79
ASCII value of m is 109
ASCII value of a is 97
ASCII value of k is 107
ASCII value of e is 101
ASCII value of u is 117
ASCII value of s is 115
ASCII value of e is 101
ASCII value of o is 111
ASCII value of f is 102

సంబంధిత: HTML, CSS మరియు JavaScript ఉపయోగించి సాధారణ కాలిక్యులేటర్‌ను ఎలా నిర్మించాలి

C అక్షరం యొక్క ASCII విలువను కనుగొనడానికి ప్రోగ్రామ్

మీరు ఉపయోగించి అక్షరం యొక్క ASCII విలువను కనుగొనవచ్చు ఫార్మాట్ నిర్దేశకాలు C. లో ఒక అక్షరం యొక్క ASCII విలువను ముద్రించడానికి C కార్యక్రమం క్రింద ఉంది:

// C program to find the ASCII value of a character
#include
int main()
{
char ch1 = 'M';
char ch2 = 'U';
char ch3 = 'O';
char ch4 = 'm';
char ch5 = 'a';
char ch6 = 'k';
char ch7 = 'e';
char ch8 = 'u';
char ch9 = 's';
char ch10 = 'e';
char ch11 = 'o';
char ch12 = 'f';
// You can print the ASCII value of a character in C using format specifier
// %d displays the integer ASCII value of a character
// %c displays the character itself
printf('ASCII value of %c is %d ⁠n', ch1, ch1);
printf('ASCII value of %c is %d ⁠n', ch2, ch2);
printf('ASCII value of %c is %d ⁠n', ch3, ch3);
printf('ASCII value of %c is %d ⁠n', ch4, ch4);
printf('ASCII value of %c is %d ⁠n', ch5, ch5);
printf('ASCII value of %c is %d ⁠n', ch6, ch6);
printf('ASCII value of %c is %d ⁠n', ch7, ch7);
printf('ASCII value of %c is %d ⁠n', ch8, ch8);
printf('ASCII value of %c is %d ⁠n', ch9, ch9);
printf('ASCII value of %c is %d ⁠n', ch10, ch10);
printf('ASCII value of %c is %d ⁠n', ch11, ch11);
printf('ASCII value of %c is %d ⁠n', ch12, ch12);
return 0;
}

అవుట్‌పుట్:

ASCII value of M is 77
ASCII value of U is 85
ASCII value of O is 79
ASCII value of m is 109
ASCII value of a is 97
ASCII value of k is 107
ASCII value of e is 101
ASCII value of u is 117
ASCII value of s is 115
ASCII value of e is 101
ASCII value of o is 111
ASCII value of f is 102

ఫన్, ప్రాక్టికల్ మార్గాల్లో మీ ప్రోగ్రామింగ్ నైపుణ్యాలను పెంచుకోండి

మీరు మెరుగ్గా ఉండి, మీరు ఏమి చేస్తున్నారో తెలుసుకున్న తర్వాత ప్రోగ్రామింగ్ సరదాగా ఉంటుంది. మీరు అనేక విధాలుగా ప్రోగ్రామింగ్ నేర్చుకోవచ్చు. కానీ ప్రోగ్రామింగ్ నేర్చుకోవడం యొక్క హ్యాండ్-ఆన్ పద్ధతి మీకు వేగంగా నేర్చుకోవడానికి మరియు ఎక్కువ కాలం పాటు సమాచారాన్ని నిలుపుకోవడానికి సహాయపడుతుంది.

బిల్డింగ్ కోడింగ్ గేమ్‌లు ఒకే సమయంలో ఆనందించేటప్పుడు అనుభవం పొందడానికి ఉత్తమమైన పద్ధతుల్లో ఒకటి.

షేర్ చేయండి షేర్ చేయండి ట్వీట్ ఇమెయిల్ మీ ప్రోగ్రామింగ్ నైపుణ్యాలను రూపొందించడానికి 9 ఉత్తమ కోడింగ్ గేమ్స్

ప్రాక్టీస్ మరియు అనుభవంతో వేగంగా నేర్చుకోవడానికి కోడింగ్ గేమ్స్ మీకు సహాయపడతాయి. అదనంగా, మీ ప్రోగ్రామింగ్ నైపుణ్యాలను పరీక్షించడానికి అవి ఒక ఆహ్లాదకరమైన మార్గం!

తదుపరి చదవండి
సంబంధిత అంశాలు
  • ప్రోగ్రామింగ్
  • జావాస్క్రిప్ట్
  • పైథాన్
  • కోడింగ్ ట్యుటోరియల్స్
  • సి ప్రోగ్రామింగ్
రచయిత గురుంచి యువరాజ్ చంద్ర(60 కథనాలు ప్రచురించబడ్డాయి)

యువరాజ్ భారతదేశంలోని ఢిల్లీ విశ్వవిద్యాలయంలో కంప్యూటర్ సైన్స్ అండర్ గ్రాడ్యుయేట్ విద్యార్థి. అతను పూర్తి స్టాక్ వెబ్ డెవలప్‌మెంట్ పట్ల మక్కువ కలిగి ఉన్నాడు. అతను వ్రాయనప్పుడు, అతను వివిధ సాంకేతికతల లోతును అన్వేషిస్తున్నాడు.

యువరాజ్ చంద్ర నుండి మరిన్ని

మా వార్తాలేఖకు సభ్యత్వాన్ని పొందండి

టెక్ చిట్కాలు, సమీక్షలు, ఉచిత ఈబుక్‌లు మరియు ప్రత్యేకమైన డీల్స్ కోసం మా వార్తాలేఖలో చేరండి!

సభ్యత్వం పొందడానికి ఇక్కడ క్లిక్ చేయండి