Why char is given int? Why its not showing error?explain output plz. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Why char is given int? Why its not showing error?explain output plz.

https://code.sololearn.com/cLWPbK88fe8B/?ref=app

26th Dec 2021, 10:56 AM
gaurav kumar
gaurav kumar - avatar
2 Antworten
+ 2
https://www.sololearn.com/Discuss/2948871/?ref=app
26th Dec 2021, 11:15 AM
Coding Cat
Coding Cat - avatar
+ 2
Because everything in computer is stored using numbers. Binary is used to store data in computers. So computer scientists developed a standard table to represent characters in form of numbers. And ASCII table is one of them. Images, Audio, text files everything is actually a set of numbers. It depends upon the application how you treat those numbers. For example., If you will open audio file in notepad then notepad will treat those numbers as characters and display characters. If you will open that audio file in audio player then audio player will treat those numbers as audio and make sound according to sequence of numbers
28th Dec 2021, 6:37 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar