A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 3 years ago
Display the ASCII characters. (Implement in dowhile loop) with functions
anonymous
 3 years ago
Display the ASCII characters. (Implement in dowhile loop) with functions

This Question is Closed

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0can you show me what code you have done

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0and is it in C or java

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0do you want to print all characters ?

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0yah thats what our teachers said

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0#include<stdio.h> #include<conio.h> void main() { char c=0; while(c<255) printf("\n%d ascii value is %c",c,c); c=c+1; }

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0its in while loop can you convert it in to do while() loop?

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0#include<stdio.h> #include<conio.h> void main() { char c=0; do{ printf("\n%d ascii value is %c",c,c); c=c+1; }while(c<255); getch(); } //in function form: #include<stdio.h> #include<conio.h> void ascii(void){ //function char c=0; do{ printf("\n%d ascii value is %c",c,c); c=c+1; }while(c<255); } void main() { ascii(); getch(); }

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0ill try it in turbo c

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0yes try it. if an problem occurs tell me ok :)

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0this one is the proper answer to your question program with function + do_while loop //in function form: #include<stdio.h> #include<conio.h> void ascii(void){ //function char c=0; do{ printf("\n%d ascii value is %c",c,c); c=c+1; }while(c<255); } void main() { ascii(); getch(); }

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0bro, their is an error occur constant out of range in comparison in function what to do?

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0in this part "while(c<255);"

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0oh its not error its a warning. but its ok program is working accurately. warning is because 255 is a huge number no worries its ok

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0your right i tryied lesser value it works..

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0thanks a lot bro got many more problems.. T___T

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0mention not i like to help :)
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.