- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Computer science, programming - relevant posts, community threads, and courses
IT, Programming, & Web Development › Forums › CS50’s Introduction to Computer Science by Harvard University on Edx › Week 2: [Arrays] – Functions, Variable and Scope, Debugging, Arrays, and Command Line Arguments › How to have ASCII code for this char
Tagged: arrays, arrays in C
Facing hurdle in printing ASCII code of a character.
I intend to have printed ASCII code of A. Help appreciated in knowing what is wrong with this code:
[dm_code_snippet background=”yes” background-mobile=”no” slim=”yes” line-numbers=”yes” bg-color=”#abb8c3″ theme=”dark” language=”clike” wrapped=”yes” height=”” copy-text=”Copy Code” copy-confirmed=”Copied”]
int t = int[A]; printf("%i",t);
[/dm_code_snippet]
Reply
https://edstem.org/us/courses/176/discussion/1783077?[learn_press_profile]