I want to know how to write a program to print all ascii values and equivalent characters using a while loop.
ascii values vary from 0 to 255.
smithag261 0 Newbie Poster
Recommended Answers
Jump to PostHey Aia ,
#include<stdio.h> void main() { FILE *fp; int i; clrscr(); fp=fopen("ASCIIF.txt","w"); i=0; while(i<256) { fprintf(fp,"\n%d.%c",i,i); i++; } fclose(fp); getch(); }
This is The Actual Code I have Just Given the Outline b4
The Output will be in the file ASCIIF.txt Please Create it b4 u …
Jump to PostK Thanks Can u give me ur Mail idn ur ASL PLz
Sorry I don't understand what ASL means.
You can send me a private email any time that you wish. However is against the rules to ask in emails for code help on personal basis. Code questions should be …
Jump to PostASL Means Age,Sex,Location n give me ur Yahoo Mail id(if u have)
Jump to Post>ASL Means Age,Sex,Location n give me ur Yahoo Mail id(if u have)
This is something you should ask for privately.>Any way Y do U bother about the Code in Syntax Bother in its Logic
So you enjoy being a weak programmer who writes bad code?
Jump to PostK Thanks Can u give me ur Mail idn ur ASL PLz
Praneeth, please read this from the site Rules.
All 23 Replies
Toba 99 Junior Poster
Dave Sinkula 2,398 long time no c Team Colleague
piyush gandhi 1 Newbie Poster
Aia 1,977 Nearly a Posting Maven
Salem 5,265 Posting Sage
ali_zulfikar 0 Newbie Poster
John A 1,896 Vampirical Lurker Team Colleague
praneeth_gunda 2 Newbie Poster
iamthwee commented: NO -2
Aia 1,977 Nearly a Posting Maven
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
praneeth_gunda 2 Newbie Poster
Aia 1,977 Nearly a Posting Maven
praneeth_gunda 2 Newbie Poster
Aia 1,977 Nearly a Posting Maven
praneeth_gunda 2 Newbie Poster
Aia 1,977 Nearly a Posting Maven
praneeth_gunda 2 Newbie Poster
Aia 1,977 Nearly a Posting Maven
praneeth_gunda 2 Newbie Poster
Aia 1,977 Nearly a Posting Maven
Salem commented: ASL means "Another Sodding Lamer" +7
praneeth_gunda 2 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.