Question

According to ASCII table, A corresponds to the ASCII code 65. In the following program snippet, would both the variables ch
0 0
Add a comment Improve this question Transcribed image text
Answer #1

yes, both chr1 and chr2 store the same value in memory.

The below code snippet in C++ shows this. It is applicable for other programming languages as well

1 #include <iostream> using namespace std; 5- int main() { char chr1 = A: char chr2 = 65; cout<<(chr1==chr2); Execute Mode,

Add a comment
Know the answer?
Add Answer to:
According to ASCII table, 'A' corresponds to the ASCII code 65. In the following program snippet,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT