Anyone tell why this code gives no output.



4/9/2020 4:21:29 PM


4 Answers

New Answer


Probably because you printed c as char. c is assigned to the result of atoi which returns an integer so you must print it as a number in order to receive a decent result. So use %hhd instead of %c and it should work. Here's my corrected version that seems to work fine: https://code.sololearn.com/cH0sr5GvnqtR/?ref=app


Thanks Aaron Eberhardt


Yeah...thank you..


Bruh try copying the code exactly. If it doesn't result in a fix try refreshing your Chrome if you are using chrome