answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int a=1;

while(a<=255)

{

printf("%d=%c",a,a );

a++;

}

getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

for (int i = 0; i<=255; i++) { char x = i ; cout << "Ascii value of " << i << ":: " << x << "\n"; }

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

-a100

mov ah,02

mov cx,1a

mov dl,40

inc dl

int 21

loop 0107

int 20

using command prompt, just copy and paste it

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

int main() {

char c;

for (c = 33; c < 127; c++)

printf("Char #%d - '%c'\n", c, c);

return 0;

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to print all the ASCII values and their equivalent characters using a while loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you find the ASCII value of numbers greater than 9?

You can find the ASCII value of numbers greater than 9 using the following functions: std::to_string or boost::lexical_cast or std::ostringstream depending on the compiler that you are using.


What is ascii value of smily face?

There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29


Write a C program to accept a string from user and display its ascii value and then display sum of all ascii value of strings?

//C program to accept a string from user and //display its ascii value and //then display sum of all ascii value of strings #include&lt;stdio.h&gt; #include &lt;string.h&gt; int main() { char String[100]; int Sum,Index; Sum=0; //Sum is initially zero printf("Enter the string:\n"); gets(String); //Accept String from User for(Index=0;Index&lt;strlen(String);Index++) { Sum+=(String[Index]); //Adds (the ASCII values of) the String characters. } printf("The sum is %d\n",Sum); //Printing it as %d gives the equivalent ASCII value. return 0; }


Ascii value of 255?

ASCII standardizes characters between 0 and 127.


Can you modify the bubble sort algorithm to search to sort an array of characters instead of array of integers?

The bubble sort algorithm can be applied to an array of characters. Every character can be translated to an integer equivalent via the ascii table

Related questions

Why do 0 through 9 have ASCII values?

That's because the inventor of ASCII code thought they are important characters.


What is the Hexadecimal equivalent of dot?

If you are referring to the ASCII code: The ASCII Code for a dot (.) is 46. The hexadecimal equivalent of this is 2E. You can find this, and all ASCII characters here: http://www.asciitable.com/.


What are the similarities between ascii-7 and ascii-8?

First of all ASCII is encoding system that tells how binary data from file could be represented as text. Is was and still is very widely used starting 1960s. Standard ASCII encoding is 7-bits encoding allowing 128 values, while Extended ASCII is 8-bits encoding which allows 256 values, that is 128 more characters in the table. First 128 Extended ASCII table characters is the same as ASCII table, next 128 is additional characters.


What is oem extended ascii?

Extended ASCII is 8-bit encoding which is wider than standard ASCII and also includes all characters from standard ASCII encoding.ASCII is 7-bit, 128 possible values; Extended ASCII is 8-bit , 256 possible value;128 first characters of Extended ASCII is the same as ASCII, next 128 are additional. This why it is called Extended ASCII.What is ASCII?ASCII is mainly English language characters encoding, that is used for representation of text information.


How do you find the ASCII value of numbers greater than 9?

You can find the ASCII value of numbers greater than 9 using the following functions: std::to_string or boost::lexical_cast or std::ostringstream depending on the compiler that you are using.


What is ascii value of smily face?

There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29


Write a C program to accept a string from user and display its ascii value and then display sum of all ascii value of strings?

//C program to accept a string from user and //display its ascii value and //then display sum of all ascii value of strings #include&lt;stdio.h&gt; #include &lt;string.h&gt; int main() { char String[100]; int Sum,Index; Sum=0; //Sum is initially zero printf("Enter the string:\n"); gets(String); //Accept String from User for(Index=0;Index&lt;strlen(String);Index++) { Sum+=(String[Index]); //Adds (the ASCII values of) the String characters. } printf("The sum is %d\n",Sum); //Printing it as %d gives the equivalent ASCII value. return 0; }


What is a size of ASCII file that contains 200 characters?

200 characters is 200 characters, unless you are talking about Unicode (which isn't Ascii).


What are advantages and disadvantages of ASCII?

disadvantages of ASCII : maximum 128 characters that is not enough for some key boards having special characters. 7bit may not enough to represent larger values. advantage compare to EBCDIC are 7bit so quickly transferable in a fraction of time.


What are advantages and disadvantages of ASCII Text?

disadvantages of ASCII : maximum 128 characters that is not enough for some key boards having special characters. 7bit may not enough to represent larger values. advantage compare to EBCDIC are 7bit so quickly transferable in a fraction of time.


What do you call an image created with characters?

Images created with printable ASCII characters is called an ASCII art. - Neeraj Sharma


Ascii value of 255?

ASCII standardizes characters between 0 and 127.