In c++ For option C, the program does not need to request any input data, simply
ID: 3903864 • Letter: I
Question
In c++
For option C, the program does not need to request any input data, simply generates the ASCII table from the character with numeric code 0 to the character with numeric code 255, separated by tab. For example, the screen output (presented only from the letter 'A' (code number 65), it would look like this.
Explanation / Answer
#include<stdio.h>
int main(){
int i;
for(i=0;i<=255;i++)
printf("%d- %c ",i,i);
return 0;
}
// this may seem like a c program but i would like to tell you that all c programs are valid c++ programs
// the output of the above code may differ in differnt compilers.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.